Shortcuts

Struct SubtractionReducer

Struct Documentation

struct ripple::SubtractionReducer

Functor which can be used with the reduction to perform a reduction subtraction.

Public Functions

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

Subtracts the data pointed to by the one iterator from the other.

Parameters
  • a: An iterator to the data to subtract from.

  • b: An iterator to the data to suctract with.

Template Parameters
  • T: The type of the iterator.

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

Subtracts the data b from a and returns the result.

Return

The subtraction of b from a.

Parameters
  • a: The first data to subtract from.

  • b: The second data to subtract with.

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