All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
NumericTools.h File Reference
#include <limits>

Go to the source code of this file.

Namespaces

 Aux
 
 Aux::NumericTools
 Tools to deal with limited precision in numeric computations.
 

Functions

template<typename T >
bool Aux::NumericTools::willOverflow (const T &pX, const T &pValue, const T &pMax=std::numeric_limits< T >::max())
 
template<typename T >
bool Aux::NumericTools::willUnderflow (const T &pX, const T &pValue, const T &pMin=std::numeric_limits< T >::min())
 
bool Aux::NumericTools::equal (double x, double y, double error=acceptableError)
 Test doubles for equality within a given error. More...
 
bool Aux::NumericTools::le (double x, double y, double error=acceptableError)
 Test doubles for equality within a given error. More...
 
bool Aux::NumericTools::ge (double x, double y, double error=acceptableError)
 Test doubles for equality within a given error. More...
 
bool Aux::NumericTools::logically_equal (double a, double b, double error_factor=1.0)
 Test doubles for equality within the smallest possible error. More...