Shortcuts

Template Function ripple::kernel::cpu::reduce

Function Documentation

template<typename T, size_t Dims, typename Pred, typename ...Args>
auto ripple::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.

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