OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Util::KahanAccumulation Struct Reference

#include <Util.h>

Collaboration diagram for Util::KahanAccumulation:

Public Member Functions

 KahanAccumulation ()
KahanAccumulationoperator+= (double value)

Public Attributes

long double sum
long double correction

Detailed Description

Definition at line 233 of file Util.h.

Constructor & Destructor Documentation

◆ KahanAccumulation()

Util::KahanAccumulation::KahanAccumulation ( )

Definition at line 224 of file Util.cpp.

References correction, and sum.

Referenced by operator+=().

Member Function Documentation

◆ operator+=()

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

Definition at line 229 of file Util.cpp.

References correction, KahanAccumulation(), and sum.

Here is the call graph for this function:

Member Data Documentation

◆ correction

long double Util::KahanAccumulation::correction

Definition at line 235 of file Util.h.

Referenced by KahanAccumulation(), and operator+=().

◆ sum

long double Util::KahanAccumulation::sum

Definition at line 234 of file Util.h.

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


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