3 #ifndef GAUDIKERNEL_LOMONT_H
4 #define GAUDIKERNEL_LOMONT_H 1
93 const unsigned short maxULPs ) ;
134 const unsigned int maxULPs ) ;
156 class Lomont<float> :
public std::binary_function<float,float,bool>
162 Lomont (
const unsigned short ulps ) : m_ulps ( ulps ) {}
167 inline bool operator () (
const float a ,
const float b )
const
202 class Lomont<double> :
public std::binary_function<double,double,bool>
208 Lomont (
const unsigned int ulps ) : m_ulps ( ulps ) {}
213 inline bool operator () (
const double a ,
const double b )
const
245 float next_float (
const float af ,
const short ulps ) ;
264 double next_double (
const double af ,
const short ulps ) ;
272 #endif // GAUDIKERNEL_LOMONT_H
unsigned short m_ulps
the precision in "units in last place"
GAUDI_API bool lomont_compare_float(const float af, const float bf, const unsigned short maxULPs)
equality comparison of float numbers using as the metric the maximal number of Units in the Last Plac...
GAUDI_API float next_float(const float af, const short ulps)
Get the floating number that representation is different with respect to the argument for the certain...
Lomont(const unsigned int ulps)
constructor from ULPS:
unsigned int m_ulps
the precision in "units in last place"
GAUDI_API bool lomont_compare_double(const double af, const double bf, const unsigned int maxULPs)
equality comparison of double numbers using as the metric the maximal number of Units in the Last Pla...
The equality comparison of double numbers using as the metric the maximal number of Units in the Last...
This is a number of static methods for bootstrapping the Gaudi framework.
Lomont(const unsigned short ulps)
constructor from ULPS:
GAUDI_API double next_double(const double af, const short ulps)
Get the floating number that representation is different with respect to the argument for the certain...