Shortcuts

Struct MinReducer

Struct Documentation

struct ripple::MinReducer

Functor which can be used with the reduction to find a min value over a dataset.

Public Functions

template<typename T>
auto operator()(T &a, const T &b) const noexcept -> void

Sets the a data to the min of a and b.

Parameters
  • a: The component to set to the min.

  • b: The compoennt to comapare with.

Template Parameters
  • T: The type of the iterator.

template<typename T>
auto operator()(const T &a, const T &b) const noexcept -> T

Returns the min of a and b.

Return

The min of a and b.

Parameters
  • a: The first input for comparison.

  • b: The second input for comparison

Template Parameters
  • T: The type of the data.

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