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 50 of file stablesum.h.

Constructor & Destructor Documentation

◆ StableSum() [1/2]

StableSum ( )
default

◆ StableSum() [2/2]

StableSum ( double  init)

Definition at line 57 of file stablesum.h.

Member Function Documentation

◆ operator double()

operator double ( ) const

Definition at line 78 of file stablesum.h.

◆ operator+=()

void operator+= ( double  input)

Definition at line 59 of file stablesum.h.

References StableSum< T >::sum.

◆ operator-=()

void operator-= ( double  input)

Definition at line 73 of file stablesum.h.

Member Data Documentation

◆ c

double c = 0
private

Definition at line 53 of file stablesum.h.

◆ sum

double sum = 0
private

Definition at line 52 of file stablesum.h.