class
SushiBLAS::Reduce::RunningArgMax
template <typename P>Holds the running (value, index) maximum under the iamax reference kernel's NaN rule.
- Declared in
include/SushiBLAS/support/reduce_1d.hpp
Template parameters
PAn IndexedValue type.
See also
include/SushiBLAS/support/README.md
Static public member functions
static P identity() noexceptReturns the empty candidate, which every real candidate beats.
static P combine(P a, P b) noexceptReturns the winner of two candidates under a total order.
Returns
A NaN at index 0 first, then the larger value, then the lower index; a NaN elsewhere beats only the empty candidate.
See also
include/SushiBLAS/support/README.md
Public member functions
void accumulate(P x) noexceptFolds one candidate into the running maximum.
Parameters
xThe candidate to consider.
P value() const noexceptReturns the winning candidate, or identity() if nothing was folded.

