SoPlex Documentation
Loading...
Searching...
No Matches
StableSum< double > Class Reference

#include <stablesum.h>

Public Member Functions

 StableSum ()=default
 
 StableSum (double init)
 
void operator+= (double input)
 
void operator-= (double input)
 
 operator double () const
 
 StableSum ()
 
 StableSum (const double &init)
 
void operator+= (const double &input)
 
void operator-= (const double &input)
 
 operator typename std::remove_const< double >::type () const
 

Private Attributes

double sum = 0
 
double c = 0
 
std::remove_const< double >::type sum
 

Detailed Description

Definition at line 61 of file stablesum.h.

Constructor & Destructor Documentation

◆ StableSum() [1/4]

StableSum ( )
default

◆ StableSum() [2/4]

StableSum ( double init)

Definition at line 71 of file stablesum.h.

References c, and sum.

◆ StableSum() [3/4]

StableSum ( )

Definition at line 40 of file stablesum.h.

◆ StableSum() [4/4]

StableSum ( const double & init)

Definition at line 41 of file stablesum.h.

Member Function Documentation

◆ operator double()

operator double ( ) const

Definition at line 94 of file stablesum.h.

References c, SOPLEX_MAX, soplex::spxAbs(), and sum.

◆ operator typename std::remove_const< double >::type()

operator typename std::remove_const< double >::type ( ) const

Definition at line 53 of file stablesum.h.

References sum.

◆ operator+=() [1/2]

void operator+= ( const double & input)

Definition at line 43 of file stablesum.h.

◆ operator+=() [2/2]

void operator+= ( double input)

Definition at line 73 of file stablesum.h.

References c, and sum.

◆ operator-=() [1/2]

void operator-= ( const double & input)

Definition at line 48 of file stablesum.h.

◆ operator-=() [2/2]

void operator-= ( double input)

Definition at line 89 of file stablesum.h.

Member Data Documentation

◆ c

double c = 0
private

Definition at line 64 of file stablesum.h.

Referenced by operator double(), operator+=(), and StableSum().

◆ sum [1/2]

std::remove_const<double>::type sum
private

Definition at line 37 of file stablesum.h.

◆ sum [2/2]

double sum = 0
private