Template Class Reducer< 0 >¶
Defined in File reduce_cpp_.hpp
Class Documentation¶
-
template<>
classripple::kernel::cpu::detail
::
Reducer
<0>¶ Specialization of the reducer struct for the zero (x) dimension.
Public Static Functions
-
template<typename
Iterator1
, typenameIterator2
, typenamePred
, typename ...Args
>
autoreduce
(Iterator1 &&it, Iterator2 &&result, Pred &&pred, Args&&... args) noexcept -> void¶ Performs a reduction in the x dimension.
This does not reduce the first element, and assumes that the result initially has the value of the first element.
- Parameters
it
: The iterator to invoke the callable on.result
: The iterator which points to the result.pred
: The predicate to apply to each of the elements.args
: Additional arguments for the predicate.
- Template Parameters
Dim
: The dimension to reduce over.Iterator
: The type of the iterators.Pred
: The type of the predicate.Args
: The type of the predicate additional arguments.
-
template<typename