12#include "MantidKernel/DllConfig.h"
19template <
typename T> MANTID_KERNEL_DLL
bool equals(T
const x, T
const y);
20template <
typename T> MANTID_KERNEL_DLL
inline bool equals(T
const x, T
const y, std::true_type);
21template <
typename T> MANTID_KERNEL_DLL
inline bool equals(T
const x, T
const y, std::false_type);
23template <
typename T> MANTID_KERNEL_DLL
bool ltEquals(T
const x, T
const y);
25template <
typename T> MANTID_KERNEL_DLL
bool gtEquals(T
const x, T
const y);
31template <
typename T,
typename S = T>
33template <
typename T,
typename S = T>
35template <
typename T,
typename S = T>
38template <
typename T,
typename S = T>
40template <
typename T,
typename S = T>
42template <
typename T,
typename S = T>
MANTID_KERNEL_DLL bool withinRelativeDifference(T const x, T const y, S const tolerance)
Test whether x, y are within relative tolerance tol.
MANTID_KERNEL_DLL bool equals(T const x, T const y)
Test for equality of doubles using compiler-defined precision.
MANTID_KERNEL_DLL bool gtEquals(T const x, T const y)
Test whether x>=y within machine precision.
MANTID_KERNEL_DLL T absoluteDifference(T const x, T const y)
Calculate absolute difference between x, y.
MANTID_KERNEL_DLL T relativeDifference(T const x, T const y)
Calculate relative difference between x, y.
MANTID_KERNEL_DLL bool ltEquals(T const x, T const y)
Test whether x<=y within machine precision.
MANTID_KERNEL_DLL bool withinAbsoluteDifference(T const x, T const y, S const tolerance)
Test whether x, y are within absolute tolerance tol.
Helper class which provides the Collimation Length for SANS instruments.