Reducers¶
-
template<class
T
, classA
>
Txsimd
::
reduce_add
(batch<T, A> const &x)¶ Adds all the scalars of the batch
x
.- Return
- the result of the reduction.
- Parameters
x
: batch involved in the reduction
-
template<class
T
, classA
>
Txsimd
::
reduce_max
(batch<T, A> const &x)¶ Max of all the scalars of the batch
x
.- Return
- the result of the reduction.
- Parameters
x
: batch involved in the reduction