YAP
|
Struct to calculate a compensated sum using the Kahan summation algorithm. More...
#include <CompensatedSum.h>
Public Member Functions | |
CompensatedSum (T val=0) | |
constructor | |
operator T () const | |
CompensatedSum & | operator+= (typename std::conditional< std::is_fundamental< T >::value, const T, const T & >::type value) |
addition assignment operator | |
Public Attributes | |
T | sum |
sum | |
T | correction |
correction to sum | |
Struct to calculate a compensated sum using the Kahan summation algorithm.
|
inline |
(implicit) cast operator