Contents

class

SushiBLAS::Reduce::RunningProduct

template <typename T>

Holds a running product, folded in the same fixed order as CompensatedSum.

Declared in
include/SushiBLAS/support/reduce_1d.hpp

See also

include/SushiBLAS/support/README.md

Static public member functions

static constexpr T identity() noexcept

Returns the value an empty product has.

static T combine(T a, T b) noexcept

Combines two finished products.

Parameters

a

The left partial.

b

The right partial.

Returns

a * b.

Public member functions

void accumulate(T x) noexcept

Folds one value into the running product.

Parameters

x

The value to multiply in.

T value() const noexcept

Returns the product so far.

Returns

The running product.