Shortcuts

Template Class Reducer< 0 >

Class Documentation

template<>
class ripple::kernel::cpu::detail::Reducer<0>

Specialization of the reducer struct for the zero (x) dimension.

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 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.

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