Shortcuts

Struct MaxReducer

Struct Documentation

struct ripple::MaxReducer

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

Public Functions

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

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

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

  • 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 max of a and b.

Return

The max 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