|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Performs Kahan-Babuška-Neumaier compensated summation to prevent floating-point loss of precision. More...
#include <Precision.hpp>
Public Member Functions | |
| constexpr void | add (T val) noexcept |
| constexpr void | reset () noexcept |
| constexpr T | value () const noexcept |
| constexpr | operator T () const noexcept |
Public Attributes | |
| T | sum {0} |
| T | compensation {0} |
Performs Kahan-Babuška-Neumaier compensated summation to prevent floating-point loss of precision.
| T | Floating point type (defaults to real_t). |
|
inlineconstexprnoexcept |

|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |

| T correlation::KahanAccumulator< T >::compensation {0} |
| T correlation::KahanAccumulator< T >::sum {0} |