46 template<typename dtype, std::enable_if_t<std::is_integral<dtype>::value,
int> = 0>
49 return inValue1 == inValue2;
62 template<typename dtype, std::enable_if_t<std::is_floating_point<dtype>::value,
int> = 0>
65 const auto absValue1 = std::abs(inValue1);
66 const auto absValue2 = std::abs(inValue2);
67 return std::abs(inValue1 - inValue2) <= ((absValue1 > absValue2 ? absValue2 : absValue1) * std::abs(inEpsilon));
79 template<typename dtype, std::enable_if_t<std::is_floating_point<dtype>::value,
int> = 0>
static constexpr dtype epsilon() noexcept
Definition DtypeInfo.hpp:62
Definition Utils/cube.hpp:33
bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept
Definition essentiallyEqual.hpp:47