E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches
Reductions

Detailed Description

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.