27 return !(std::fabs(
x -
y) > std::numeric_limits<TYPE>::epsilon());
38template <
typename T> MANTID_KERNEL_DLL
bool ltEquals(
const T
x,
const T
y) {
return (
equals(
x,
y) ||
x <
y); }
48template <
typename T> MANTID_KERNEL_DLL
bool gtEquals(
const T
x,
const T
y) {
return (
equals(
x,
y) ||
x >
y); }
52template DLLExport bool equals<double>(
const double,
const double);
53template DLLExport bool equals<float>(
const float,
const float);
54template DLLExport bool ltEquals<double>(
const double,
const double);
55template DLLExport bool ltEquals<float>(
const float,
const float);
56template DLLExport bool gtEquals<double>(
const double,
const double);
57template DLLExport bool gtEquals<float>(
const float,
const float);
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
MANTID_KERNEL_DLL bool equals(const T x, const T y)
Test for equality of doubles using compiler-defined precision.
MANTID_KERNEL_DLL bool ltEquals(const T x, const T y)
Test whether x<=y within machine precision.
MANTID_KERNEL_DLL bool gtEquals(const T x, const T y)
Test whether x>=y within machine precision.