ATLAS Offline Software
Namespaces | Macros | Functions
FLOATassert.h File Reference
#include <iostream>
#include <cassert>
#include <cfloat>
#include <cmath>
Include dependency graph for FLOATassert.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ FLOAT_EQassert

#define FLOAT_EQassert (   LHS,
  RHS 
)    assert(Athena_test::floatEQ(LHS, RHS));

Definition at line 41 of file FLOATassert.h.

◆ FLOAT_NEQassert

#define FLOAT_NEQassert (   LHS,
  RHS 
)    assert(Athena_test::floatNEQ(LHS, RHS));

Definition at line 40 of file FLOATassert.h.