OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Public Attributes | List of all members
Util::KahanAccumulation Struct Reference

#include <Util.h>

Public Member Functions

 KahanAccumulation ()
 
KahanAccumulationoperator+= (double value)
 

Public Attributes

long double sum
 
long double correction
 

Detailed Description

Definition at line 213 of file Util.h.

Constructor & Destructor Documentation

◆ KahanAccumulation()

Util::KahanAccumulation::KahanAccumulation ( )

Definition at line 204 of file Util.cpp.

Member Function Documentation

◆ operator+=()

KahanAccumulation & Util::KahanAccumulation::operator+= ( double  value)

Definition at line 209 of file Util.cpp.

References correction, and sum.

Member Data Documentation

◆ correction

long double Util::KahanAccumulation::correction

Definition at line 215 of file Util.h.

Referenced by operator+=().

◆ sum

long double Util::KahanAccumulation::sum

Definition at line 214 of file Util.h.

Referenced by LossDataSink::computeSetStatistics(), and operator+=().


The documentation for this struct was generated from the following files: