Scippy

SoPlex

Sequential object-oriented simPlex

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
 

Private Attributes

double sum = 0
 
double c = 0
 

Detailed Description

Definition at line 61 of file stablesum.h.

Constructor & Destructor Documentation

◆ StableSum() [1/2]

StableSum ( )
default

◆ StableSum() [2/2]

StableSum ( double  init)

Definition at line 71 of file stablesum.h.

Member Function Documentation

◆ operator double()

operator double ( ) const

Definition at line 94 of file stablesum.h.

References SOPLEX_MAX, soplex::spxAbs(), and StableSum< T >::sum.

◆ operator+=()

void operator+= ( double  input)

Definition at line 73 of file stablesum.h.

References StableSum< T >::sum.

◆ operator-=()

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.

◆ sum

double sum = 0
private

Definition at line 63 of file stablesum.h.