Files
2025-10-25 03:02:53 +03:00

4.2 KiB
Raw Permalink Blame History

[simd.mask.reductions]

29 Numerics library [numerics]

29.10 Data-parallel types [simd]

29.10.10 basic_mask non-member operations [simd.mask.nonmembers]

29.10.10.5 basic_mask reductions [simd.mask.reductions]

🔗

template<size_t Bytes, class Abi> constexpr bool all_of(const basic_mask<Bytes, Abi>& k) noexcept;

1

#

Returns: true if all boolean elements in k are true, otherwisefalse.

🔗

template<size_t Bytes, class Abi> constexpr bool any_of(const basic_mask<Bytes, Abi>& k) noexcept;

2

#

Returns: true if at least one boolean element in k is true, otherwise false.

🔗

template<size_t Bytes, class Abi> constexpr bool none_of(const basic_mask<Bytes, Abi>& k) noexcept;

3

#

Returns: !any_of(k).

🔗

template<size_t Bytes, class Abi> constexpr simd-size-type reduce_count(const basic_mask<Bytes, Abi>& k) noexcept;

4

#

Returns: The number of boolean elements in k that are true.

🔗

template<size_t Bytes, class Abi> constexpr simd-size-type reduce_min_index(const basic_mask<Bytes, Abi>& k);

5

#

Preconditions: any_of(k) is true.

6

#

Returns: The lowest element index i where k[i] is true.

🔗

template<size_t Bytes, class Abi> constexpr simd-size-type reduce_max_index(const basic_mask<Bytes, Abi>& k);

7

#

Preconditions: any_of(k) is true.

8

#

Returns: The greatest element index i where k[i] is true.

🔗

constexpr bool all_of([same_as](concept.same#concept:same_as "18.4.2Concept same_­as[concept.same]")<bool> auto x) noexcept; constexpr bool any_of([same_as](concept.same#concept:same_as "18.4.2Concept same_­as[concept.same]")<bool> auto x) noexcept; constexpr simd-size-type reduce_count([same_as](concept.same#concept:same_as "18.4.2Concept same_­as[concept.same]")<bool> auto x) noexcept;

9

#

Returns: x.

🔗

constexpr bool none_of([same_as](concept.same#concept:same_as "18.4.2Concept same_­as[concept.same]")<bool> auto x) noexcept;

10

#

Returns: !x.

🔗

constexpr simd-size-type reduce_min_index([same_as](concept.same#concept:same_as "18.4.2Concept same_­as[concept.same]")<bool> auto x); constexpr simd-size-type reduce_max_index([same_as](concept.same#concept:same_as "18.4.2Concept same_­as[concept.same]")<bool> auto x);

11

#

Preconditions: x is true.

12

#

Returns: 0.