Contents

class

SushiBLAS::Reduce::RunningMax

template <typename T>

Holds a running maximum in the shape the folding seams accumulate in.

Declared in
include/SushiBLAS/support/reduce_1d.hpp

See also

include/SushiBLAS/support/README.md

Static public member functions

static T identity() noexcept

Returns the value an empty maximum has: -infinity, or the lowest finite value when T has no infinity.

See also

include/SushiBLAS/support/README.md

static T combine(T a, T b) noexcept

Combines two finished maxima.

Returns

The greater, keeping a on a tie or a NaN.

Public member functions

void accumulate(T x) noexcept

Folds one value into the running maximum.

Parameters

x

The value to consider.

T value() const noexcept

Returns the maximum so far.

Returns

The running maximum, or identity if nothing was folded.