|
| template<typename T > |
| MANTID_KERNEL_DLL T | Mantid::Kernel::absoluteDifference (T const x, T const y) |
| | Calculate absolute difference between x, y.
|
| |
| template<typename T > |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::equals (T const x, T const y) |
| | Test for equality of doubles using compiler-defined precision.
|
| |
| template<typename T > |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::equals (T const x, T const y, std::false_type) |
| |
| template<typename T > |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::equals (T const x, T const y, std::true_type) |
| |
| template<typename T > |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::gtEquals (T const x, T const y) |
| | Test whether x>=y within machine precision.
|
| |
| template<typename T > |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::ltEquals (T const x, T const y) |
| | Test whether x<=y within machine precision.
|
| |
| template<typename T > |
| MANTID_KERNEL_DLL T | Mantid::Kernel::relativeDifference (T const x, T const y) |
| | Calculate relative difference between x, y.
|
| |
| template<typename T , typename S = T> |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::withinAbsoluteDifference (T const x, T const y, S const tolerance) |
| | Test whether x, y are within absolute tolerance tol.
|
| |
| template<typename T , typename S = T> |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::withinAbsoluteDifference (T const x, T const y, S const tolerance, std::false_type) |
| |
| template<typename T , typename S = T> |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::withinAbsoluteDifference (T const x, T const y, S const tolerance, std::true_type) |
| |
| template<typename T , typename S = T> |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::withinRelativeDifference (T const x, T const y, S const tolerance) |
| | Test whether x, y are within relative tolerance tol.
|
| |
| template<typename T , typename S = T> |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::withinRelativeDifference (T const x, T const y, S const tolerance, std::false_type) |
| |
| template<typename T , typename S = T> |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::withinRelativeDifference (T const x, T const y, S const tolerance, std::true_type) |
| |