limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
limes::algorithms::accumulators::kahan_accumulator< T > Class Template Reference

#include <accumulators.hpp>

Public Types

using value_type = T
 

Public Member Functions

constexpr kahan_accumulator () noexcept
 
constexpr kahan_accumulator (T init) noexcept
 
constexpr kahan_accumulatoroperator+= (T value) noexcept
 
constexpr T operator() () const noexcept
 
constexpr operator T () const noexcept
 
constexpr T error () const noexcept
 
constexpr T correction () const noexcept
 
constexpr void reset () noexcept
 

Detailed Description

template<Field T>
class limes::algorithms::accumulators::kahan_accumulator< T >

Definition at line 42 of file accumulators.hpp.

Member Typedef Documentation

◆ value_type

template<Field T>
using limes::algorithms::accumulators::kahan_accumulator< T >::value_type = T

Definition at line 44 of file accumulators.hpp.

Constructor & Destructor Documentation

◆ kahan_accumulator() [1/2]

template<Field T>
constexpr limes::algorithms::accumulators::kahan_accumulator< T >::kahan_accumulator ( )
inlineconstexprnoexcept

Definition at line 46 of file accumulators.hpp.

◆ kahan_accumulator() [2/2]

template<Field T>
constexpr limes::algorithms::accumulators::kahan_accumulator< T >::kahan_accumulator ( init)
inlineexplicitconstexprnoexcept

Definition at line 47 of file accumulators.hpp.

Member Function Documentation

◆ correction()

template<Field T>
constexpr T limes::algorithms::accumulators::kahan_accumulator< T >::correction ( ) const
inlineconstexprnoexcept

Definition at line 61 of file accumulators.hpp.

◆ error()

template<Field T>
constexpr T limes::algorithms::accumulators::kahan_accumulator< T >::error ( ) const
inlineconstexprnoexcept

Definition at line 60 of file accumulators.hpp.

◆ operator T()

template<Field T>
constexpr limes::algorithms::accumulators::kahan_accumulator< T >::operator T ( ) const
inlineconstexprnoexcept

Definition at line 58 of file accumulators.hpp.

◆ operator()()

template<Field T>
constexpr T limes::algorithms::accumulators::kahan_accumulator< T >::operator() ( ) const
inlineconstexprnoexcept

Definition at line 57 of file accumulators.hpp.

◆ operator+=()

template<Field T>
constexpr kahan_accumulator & limes::algorithms::accumulators::kahan_accumulator< T >::operator+= ( value)
inlineconstexprnoexcept

Definition at line 49 of file accumulators.hpp.

◆ reset()

template<Field T>
constexpr void limes::algorithms::accumulators::kahan_accumulator< T >::reset ( )
inlineconstexprnoexcept

Definition at line 63 of file accumulators.hpp.


The documentation for this class was generated from the following file: