Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
SafeCompare.h File Reference
#include <hydra/detail/Config.h>
#include <hydra/detail/utility/MachineEpsilon.h>
#include <limits>
#include <stdexcept>
#include <utility>
Include dependency graph for SafeCompare.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 hydra
 Generic policies definition.
 
 hydra::detail
 

Functions

template<typename T >
__hydra_host__ __hydra_device__ bool hydra::detail::ApproximatelyEqual (T a, T b, T tolerance=machine_eps_f64())
 
template<typename T >
__hydra_host__ __hydra_device__ bool hydra::detail::ApproximatelyZero (T a, T tolerance=machine_eps_f64())
 
template<typename T >
__hydra_host__ __hydra_device__ bool hydra::detail::SafeGreaterThan (T a, T b, T tolerance=machine_eps_f64())
 
template<typename T >
__hydra_host__ __hydra_device__ bool hydra::detail::SafeLessThan (T a, T b, T tolerance=machine_eps_f64())
 
template<typename T >
__hydra_host__ __hydra_device__ bool hydra::detail::WithinPrecisionInterval (T b, T a, unsigned int interval_size=1)