class
SushiBLAS::Reduce::ExactSum
template <typename T>Holds a running sum over a type whose addition is exact.
- Declared in
include/SushiBLAS/support/reduce_1d.hpp
See also
include/SushiBLAS/support/README.md
Static public member functions
static constexpr T identity() noexceptReturns the value an empty sum has.
static constexpr T combine(T a, T b) noexceptCombines two finished sums.
Parameters
aThe left partial.
bThe right partial.
Returns
a + b.
Public member functions
void accumulate(T x) noexceptFolds one value into the running sum.
Parameters
xThe value to add.
T value() const noexceptReturns the sum so far.
Returns
The running total.

