Template Function ripple::kernel::cpu::reduce¶
Defined in File reduce_cpp_.hpp
Function Documentation¶
-
template<typename
T, size_tDims, typenamePred, typename ...Args>
autoripple::kernel::cpu::reduce(const HostBlock<T, Dims> &block, Pred &&pred, Args&&... args) noexcept¶ Reduces the block using the predicate.
- Return
The result of the reduction.
- Parameters
block: The block to invoke the callable on.pred: The predicate for the reduction.args: Arguments for the predicate.
- Template Parameters
T: The type of the data in the block.Dims: The number of dimensions in the block.Pred: The type of the predicate.Args: The type of the arguments for the invocation.