|
| template<typename T > |
| T | Mantid::Kernel::absoluteDifference (T const x, T const y) |
| | ABSOLUTE AND RELATIVE DIFFERENCE.
|
| |
| template<typename T > |
| bool | Mantid::Kernel::equals (T const x, T const y) |
| | Compare numbers for equality to within machine epsilon.
|
| |
| template<typename T > |
| bool | Mantid::Kernel::equals (T const x, T const y, MADE_FOR_FLOATS) |
| | Compare floating point numbers for equality to within std::numeric_limits<TYPE>::epsilon precision.
|
| |
| template<typename T > |
| bool | Mantid::Kernel::equals (T const x, T const y, MADE_FOR_INTEGERS) |
| | Compare integer numbers.
|
| |
| 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 > |
| T | Mantid::Kernel::relativeDifference (T const x, T const y) |
| | Calculate the relative difference of two floating-point numbers.
|
| |
| template<typename T , typename S > |
| bool | Mantid::Kernel::withinAbsoluteDifference (T const x, T const y, S const tolerance) |
| | Compare floating point numbers for absolute difference to within the given tolerance.
|
| |
| template<typename T , typename S > |
| bool | Mantid::Kernel::withinAbsoluteDifference (T const x, T const y, S const tolerance, MADE_FOR_FLOATS) |
| | Compare floating point numbers for absolute difference to within the given tolerance.
|
| |
| template<typename T , typename S > |
| bool | Mantid::Kernel::withinAbsoluteDifference (T const x, T const y, S const tolerance, MADE_FOR_INTEGERS) |
| |
| template<> |
| DLLExport bool | Mantid::Kernel::withinAbsoluteDifference< V3D, double > (V3D const V1, V3D const V2, double const tolerance) |
| | Template specialization for V3D.
|
| |
| template<typename T , typename S > |
| bool | Mantid::Kernel::withinRelativeDifference (T const x, T const y, S const tolerance) |
| | Compare floating point numbers for relative difference to within the given tolerance.
|
| |
| template<typename T , typename S > |
| bool | Mantid::Kernel::withinRelativeDifference (T const x, T const y, S const tolerance, MADE_FOR_FLOATS) |
| | Compare floating point numbers for relative difference to within the given tolerance.
|
| |
| template<typename T , typename S > |
| bool | Mantid::Kernel::withinRelativeDifference (T const x, T const y, S const tolerance, MADE_FOR_INTEGERS) |
| |
| template<> |
| DLLExport bool | Mantid::Kernel::withinRelativeDifference< V3D, double > (V3D const V1, V3D const V2, double const tolerance) |
| | Compare 3D vectors (class V3D) for relative difference to within the given tolerance.
|
| |