![]() |
ATLAS Offline Software
|
#include <iostream>
#include <cassert>
#include <cfloat>
#include <cmath>
Go to the source code of this file.
Namespaces | |
Athena_test | |
functions & macros to test the difference between floats | |
Macros | |
#define | FLOAT_NEQassert(LHS, RHS) assert(Athena_test::floatNEQ(LHS, RHS)); |
#define | FLOAT_EQassert(LHS, RHS) assert(Athena_test::floatEQ(LHS, RHS)); |
Functions | |
bool | Athena_test::floatEQ (float lhs, float rhs) |
bool | Athena_test::floatNEQ (float lhs, float rhs) |
bool | Athena_test::isEqual (double x1, double x2, double thresh=1e-6) |
#define FLOAT_EQassert | ( | LHS, | |
RHS | |||
) | assert(Athena_test::floatEQ(LHS, RHS)); |
Definition at line 41 of file FLOATassert.h.
#define FLOAT_NEQassert | ( | LHS, | |
RHS | |||
) | assert(Athena_test::floatNEQ(LHS, RHS)); |
Definition at line 40 of file FLOATassert.h.