OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
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 186 of file Util.h.

Constructor & Destructor Documentation

◆ KahanAccumulation()

Util::KahanAccumulation::KahanAccumulation ( )

Definition at line 147 of file Util.cpp.

Member Function Documentation

◆ operator+=()

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

Definition at line 153 of file Util.cpp.

References correction, and sum.

Member Data Documentation

◆ correction

long double Util::KahanAccumulation::correction

Definition at line 189 of file Util.h.

Referenced by operator+=().

◆ sum

long double Util::KahanAccumulation::sum

Definition at line 188 of file Util.h.

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


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