Functions | |
| template<typename T , typename U > | |
| double | tts::absolute_check (T const &a, U const &b) |
| Compute the absolute distance between two values. | |
| template<typename T , typename U > | |
| bool | tts::ieee_check (T const &a, U const &b) |
| Compute if values are exactly equals or all NaNs/Invalids. | |
| template<typename T , typename U > | |
| double | tts::relative_check (T const &a, U const &b) |
| Compute the relative distance between two values. | |
| template<typename T , typename U > | |
| double | tts::ulp_check (T const &a, U const &b) |
| Compute the distance in ULP between two values. | |
|
inline |
#include <tts/tools/precision.hpp>
Compute the absolute distance between two values.
| a | Value to compare |
| b | Value to compare |
|
inline |
#include <tts/tools/precision.hpp>
Compute if values are exactly equals or all NaNs/Invalids.
| a | Value to compare |
| b | Value to compare |
a == b or _::is_nan(a) && _::is_nan(b)
|
inline |
#include <tts/tools/precision.hpp>
Compute the relative distance between two values.
| a | Value to compare |
| b | Value to compare |
|
inline |
#include <tts/tools/precision.hpp>
Compute the distance in ULP between two values.
| a | Value to compare |
| b | Value to compare |