Molassembler  3.0.0
Molecule graph and conformer library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FloatingPointComparison.h File Reference

Helpers for comparing floating point values. More...

#include "Molassembler/Temple/constexpr/Math.h"
#include <tuple>
#include <cassert>
Include dependency graph for FloatingPointComparison.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Helpers for comparing floating point values.