#include <TensorHelpers.hpp>
template<typename T>
struct SelectiveComparer< T, false >
Definition at line 36 of file TensorHelpers.hpp.
◆ Compare()
static bool Compare |
( |
T |
a, |
|
|
T |
b |
|
) |
| |
|
inlinestatic |
Definition at line 38 of file TensorHelpers.hpp.
References g_FloatCloseToZeroTolerance.
41 if (a == 0.0f || b == 0.0f)
46 if (std::isinf(a) && a == b)
51 if (std::isnan(a) && std::isnan(b))
57 boost::math::fpc::close_at_tolerance<float> comparer(boost::math::fpc::percent_tolerance(1.0f));
58 return comparer(a, b);
constexpr float g_FloatCloseToZeroTolerance
The documentation for this struct was generated from the following file: