Go to the source code of this file.
Classes | |
struct | __approx_epsilon< F > |
struct | __approx_epsilon< double > |
struct | __approx_epsilon< float > |
struct | __approx_margin< F > |
struct | __approx_margin< double > |
struct | __approx_margin< float > |
Macros | |
#define | __APPROX_EPSILON __APPROX_MARGIN |
#define | __APPROX_MARGIN std::numeric_limits<float>::epsilon() |
#define | approx_abs(D) Catch::WithinAbs( (D), approx_margin((D)) ) |
#define | approx_equals(D) ( approx_abs(D) || approx_rel(D) ) |
#define | approx_rel(D) Catch::WithinRel( (D), approx_epsilon((D)) ) |
Functions | |
template<typename F > | |
Approx | approx (F f) |
template<typename F > | |
F | approx_epsilon (F) |
template<typename F > | |
F | approx_margin (F) |
template<class T > | |
std::string | full_precision (T const d) |
#define __APPROX_EPSILON __APPROX_MARGIN |
#define __APPROX_MARGIN std::numeric_limits<float>::epsilon() |
#define approx_abs | ( | D | ) | Catch::WithinAbs( (D), approx_margin((D)) ) |
#define approx_equals | ( | D | ) | ( approx_abs(D) || approx_rel(D) ) |
#define approx_rel | ( | D | ) | Catch::WithinRel( (D), approx_epsilon((D)) ) |
std::string full_precision | ( | T const | d | ) |