18#ifndef itkCompensatedSummation_h
19#define itkCompensatedSummation_h
65template <
typename TFloat>
131#ifdef ITK_USE_CONCEPT_CHECKING
143#ifndef ITK_MANUAL_INSTANTIATION
144# include "itkCompensatedSummation.hxx"
Perform more precise accumulation of floating point numbers.
Self & operator=(const Self &)=default
Self & operator-=(const FloatType &rhs)
const AccumulateType & GetSum() const
typename NumericTraits< FloatType >::AccumulateType AccumulateType
CompensatedSummation(FloatType value)
Self & operator/=(const FloatType &rhs)
Self & operator+=(const Self &rhs)
Self & operator*=(const FloatType &rhs)
CompensatedSummation(const Self &)=default
CompensatedSummation()=default
Self & operator+=(const FloatType &rhs)
void AddElement(const FloatType &element)
Self & operator=(const FloatType &rhs)
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
void ITKCommon_EXPORT CompensatedSummationAddElement(float &compensation, float &sum, const float element)