ALPSCore reference
Namespaces | Functions
fp_compare.hpp File Reference
#include <cmath>
#include <float.h>
Include dependency graph for fp_compare.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 alps
 
 alps::testing
 

Functions

template<typename T >
bool alps::testing::is_near (const T a, const T b, const T eps)
 Compares two floating point values, see http://floating-point-gui.de/errors/comparison/. More...
 
template<typename T >
bool alps::testing::is_near (const T a, const T b)
 Compares two floating point values, see http://floating-point-gui.de/errors/comparison/. More...
 

Detailed Description

Utilities for comapring floating point numbers in tests

Definition in file fp_compare.hpp.