ATLAS Offline Software
Loading...
Searching...
No Matches
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

namespace  Athena_test
 functions & macros to test the difference between floats

Macros

#define FLOAT_NEQassert(LHS, RHS)
#define FLOAT_EQassert(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 )
Value:
assert(Athena_test::floatEQ(LHS, RHS));
bool floatEQ(float lhs, float rhs)
Definition FLOATassert.h:17

Definition at line 40 of file FLOATassert.h.

◆ FLOAT_NEQassert

#define FLOAT_NEQassert ( LHS,
RHS )
Value:
assert(Athena_test::floatNEQ(LHS, RHS));
bool floatNEQ(float lhs, float rhs)
Definition FLOATassert.h:21

Definition at line 39 of file FLOATassert.h.