Shortcuts

Template Class Reducer

Class Documentation

template<size_t Dim>
class ripple::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, typename Iterator2, typename Pred, typename ...Args>
auto reduce(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.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples