Mantid
Loading...
Searching...
No Matches
FloatingPointComparison.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//-----------------------------------------------------------------------------
10// Includes
11//-----------------------------------------------------------------------------
12#include "MantidKernel/DllConfig.h"
13
14namespace Mantid {
15namespace Kernel {
17template <typename T> MANTID_KERNEL_DLL bool equals(const T x, const T y);
19template <typename T> MANTID_KERNEL_DLL bool ltEquals(const T x, const T y);
21template <typename T> MANTID_KERNEL_DLL bool gtEquals(const T x, const T y);
22} // namespace Kernel
23} // namespace Mantid
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.
Helper class which provides the Collimation Length for SANS instruments.