Template Class Reducer¶
Defined in File reduce_cpp_.hpp
Class Documentation¶
-
template<size_t
Dim
>
classripple::kernel::cpu::detail
::
Reducer
¶ Forward declaration of a struct to perform a reduction in the given number of dimensions.
Struct to define a reducer for a domain with the given number of dimensions.
- Template Parameters
Dims
: The number of dimensions for the reduction.Dim
: The number of dimensions in the domain.
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 given dimension by performing a reduction on each of the (rows/planes) in the Dim - 1 dimension.
- Parameters
it
: The iterator to reduce the data over.result
: The iterator to reduce into.pred
: The predicate to apply to each of the elements.args
: Additional arguments for the predicate.
- Template Parameters
Iterator1
: The type of the first iterator.Iterator2
: The type of the second iterator.Pred
: The type of the predicate.Args
: The type of the predicate additional arguments.