Contents

class

SushiBLAS::Reduce::CompensatedComplexSum

template <typename C>

Holds a complex running sum as two CompensatedSum, one per component.

Declared in
include/SushiBLAS/support/reduce_1d.hpp

Template parameters

C

A std::complex type.

See also

include/SushiBLAS/support/README.md

Static public member functions

static C identity() noexcept

Returns the value an empty sum has.

static C combine(C a, C b) noexcept

Combines two finished sums.

Returns

a + b.

Public member functions

void accumulate(C x) noexcept

Folds one value into the running sum, component by component.

Parameters

x

The value to add.

C value() const noexcept

Returns the sum with both corrections applied.