Tolerance
Declared in lemon/tolerance.h, in the group Miscellaneous Tools; the same class on the Doxygen site.
-
template< class T >
class Tolerance A class to provide a basic way to handle the comparison of numbers that are obtained as a result of a probably inexact computation.
Tolerance is a class to provide a basic way to handle the comparison of numbers that are obtained as a result of a probably inexact computation.
The general implementation is suitable only if the data type is exact, like the integer types, otherwise a specialized version must be implemented. These specialized classes like Tolerance< double > may offer additional tuning parameters.
See also
See also
See also
Comparisons
The concept is that these bool functions return
trueonly if the related comparisons hold even if some numerical error appeared during the computations.
-
template<>
class Tolerance< float > Float specialization of Tolerance.
See also
Comparisons
See Tolerance for more details.
Public Types
-
typedef float Value
-
typedef float Value
-
template<>
class Tolerance< double > Double specialization of Tolerance.
See also
Comparisons
See Tolerance for more details.
Public Types
-
typedef double Value
-
typedef double Value