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