MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
accumulator_traits.hpp File Reference
#include <mtl/math/identity.hpp>
#include <mtl/math/error_free.hpp>
#include <cmath>
#include <concepts>
#include <limits>
#include <type_traits>

Classes

struct  mtl::math::accumulator_traits< Acc, Value >
 Accumulator policy for accumulating products of Values into an Acc. More...
struct  mtl::math::accumulator_traits< Acc, Value >
 Accumulator policy for an accumulator that provides the ADL hook (configuration 3, see adl_accumulator). More...
struct  mtl::math::fma_accumulator< T >
 Configuration 2 – fused multiply-add accumulator. More...
struct  mtl::math::accumulator_traits< fma_accumulator< T >, Value >
 Accumulator policy for the FMA reduction (configuration 2). More...
struct  mtl::math::compensated_accumulator< T >
 Configuration 2c – compensated accumulator: Ogita, Rump and Oishi's Sum2 and Dot2 ("Accurate sum and dot product", SIAM J. More...
struct  mtl::math::accumulator_traits< compensated_accumulator< T >, Value >
 Accumulator policy for the compensated reduction (configuration 2c). More...
struct  mtl::math::accumulator_round_type< Acc, Mag >
 The arithmetic type an accumulator should be rounded out to before a scalar post-processing step such as sqrt. More...
struct  mtl::math::accumulator_round_type< fma_accumulator< T >, Mag >
struct  mtl::math::accumulator_round_type< compensated_accumulator< T >, Mag >

Namespaces

namespace  mtl
namespace  mtl::math

Concepts

concept  mtl::math::adl_accumulator
 Configuration 3 via the ADL hook: does Acc's own namespace provide the super-accumulator functions for products of Values?
concept  mtl::math::mergeable_accumulator
 Can two partial accumulators of a reduction be combined?

Typedefs

template<typename Acc, typename Mag>
using mtl::math::accumulator_round_type_t = typename accumulator_round_type<Acc, Mag>::type

Variables

template<typename Acc, typename Value>
constexpr bool mtl::math::is_compensated_accumulator_v = false
 Three-factor terms (#602).
template<typename T, typename Value>
constexpr bool mtl::math::is_compensated_accumulator_v< compensated_accumulator< T >, Value >
template<typename Acc, typename Value>
constexpr bool mtl::math::splits_product_terms_v