Scippy

SoPlex

Sequential object-oriented simPlex

StableSum< double > Class Template 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

template<>
class soplex::StableSum< double >

Definition at line 52 of file stablesum.h.

Constructor & Destructor Documentation

◆ StableSum() [1/2]

StableSum ( )
default

◆ StableSum() [2/2]

StableSum ( double  init)

Definition at line 62 of file stablesum.h.

Member Function Documentation

◆ operator double()

operator double ( ) const

Definition at line 85 of file stablesum.h.

References MAXIMUM, and soplex::spxAbs().

◆ operator+=()

void operator+= ( double  input)

Definition at line 64 of file stablesum.h.

References StableSum< T >::sum.

◆ operator-=()

void operator-= ( double  input)

Definition at line 80 of file stablesum.h.

Member Data Documentation

◆ c

double c = 0
private

Definition at line 55 of file stablesum.h.

◆ sum

double sum = 0
private

Definition at line 54 of file stablesum.h.