Operations providing a scalar value from SIMD vectors
Variables | |
| constexpr auto | eve::all = functor<all_t> |
| Computes a bool value which is true if and only if every elements of x evaluates to true. | |
| constexpr auto | eve::any = functor<any_t> |
| Computes a bool value which is true if and only if one or more elements of x evaluates to true. | |
| constexpr auto | eve::count_true = functor<count_true_t> |
| Computes the number of elements of the input which evaluates to true. | |
| constexpr auto | eve::first_true = functor<first_true_t> |
| Returns the index of the first element in the input which evaluates to true, if there is one. | |
| constexpr auto | eve::last_true = functor<last_true_t> |
| Returns the index of the last element in the input which evaluates to true, if there is one. | |
| constexpr auto | eve::maximum = functor<maximum_t> |
| Computes the maximal value in a simd vector or valmin if the input is fully masked. | |
| constexpr auto | eve::minimum = functor<minimum_t> |
| Computes the minimal value in a simd vector or majorant if the input is fully masked. | |
| constexpr auto | eve::none = functor<none_t> |
| Computes a bool value which is true if and only if all elements of x evaluate to false. | |
| constexpr auto | eve::reduce = functor<reduce_t> |
| Computes the reduction of a SIMD value using a given callable. Performs an horizontal sum by default. | |
|
inlineconstexpr |
Computes a bool value which is true if and only if every elements of x evaluates to true.
Parameters
Return value
|
inlineconstexpr |
Computes a bool value which is true if and only if one or more elements of x evaluates to true.
Parameters
Return value
|
inlineconstexpr |
Computes the number of elements of the input which evaluates to true.
Parameters
Return value
|
inlineconstexpr |
Returns the index of the first element in the input which evaluates to true, if there is one.
Parameters
Return value
The function is considering the case when nothing is set to be likely, checking for eve::any before hand is not going to be helpful. At the moment there isn't a function that would do it otherwise.
We would recommend eve::first_true(m) - this is likely to trigger compiler optimizations, based on it being UB otherwise.
|
inlineconstexpr |
Returns the index of the last element in the input which evaluates to true, if there is one.
Parameters
Return value
The function is considering the case when nothing is set to be likely, checking for eve::any before hand is not going to be helpful. At the moment there isn't a function that would do otherwise.
We would recommend eve::last_true(m) - this is likely to trigger compiler optimizations, based on it being UB otherwise.
|
inlineconstexpr |
Computes the maximal value in a simd vector or valmin if the input is fully masked.
Parameters
Return value
|
inlineconstexpr |
Computes the minimal value in a simd vector or majorant if the input is fully masked.
Parameter
Return value
|
inlineconstexpr |
Computes a bool value which is true if and only if all elements of x evaluate to false.
Parameters
Return value
|
inlineconstexpr |
Computes the reduction of a SIMD value using a given callable. Performs an horizontal sum by default.
Parameters
Return value