Helpers for comparing floating point values. More...
Go to the source code of this file.
Data Structures | |
class | Scine::Molassembler::Temple::Floating::ExpandedAbsoluteEqualityComparator< T > |
class | Scine::Molassembler::Temple::Floating::ExpandedRelativeEqualityComparator< T > |
Namespaces | |
Scine::Molassembler | |
Central library namespace. | |
Scine::Molassembler::Temple | |
Template shorthands, optimizers and constexpr data types. | |
Scine::Molassembler::Temple::Floating | |
Floating-point comparison helpers. | |
Functions | |
template<typename T > | |
constexpr std::enable_if_t < std::is_floating_point< T > ::value, bool > | Scine::Molassembler::Temple::Floating::isCloseRelative (T a, T b, T relativeTolerance) |
template<typename T > | |
constexpr std::enable_if_t < std::is_floating_point< T > ::value, bool > | Scine::Molassembler::Temple::Floating::isCloseAbsolute (T a, T b, T absoluteTolerance) |
template<typename T > | |
PURITY_STRONG constexpr std::enable_if_t < std::is_floating_point< T > ::value, bool > | Scine::Molassembler::Temple::Floating::isCloseRelative (const T a, const T b, const T relativeTolerance) |
template<typename T > | |
PURITY_STRONG constexpr std::enable_if_t < std::is_floating_point< T > ::value, bool > | Scine::Molassembler::Temple::Floating::isCloseAbsolute (const T a, const T b, const T absoluteTolerance) |
Helpers for comparing floating point values.