20 return value != value;
23constexpr bool isDefined(std::floating_point
auto value) {
30constexpr bool isinf(
auto value) {
31 return value == +std::numeric_limits<
decltype(value)>::infinity() ||
32 value == -std::numeric_limits<
decltype(value)>::infinity();
36 std::floating_point
auto a,
37 std::floating_point
auto b) {
39 return std::max(a, b);
45 std::floating_point
auto a,
46 std::floating_point
auto b) {
48 return std::min(a, b);
58 return std::abs(a - b) < 0.0001f;
65 return std::abs(a - b) < 0.0001;
70template <std::
size_t Size,
typename ElementT>
72 const std::array<ElementT, Size>& val1,
73 const std::array<ElementT, Size>& val2) {
75 for (std::size_t i = 0; i < Size && areEqual; ++i) {
Definition Benchmark.cpp:19
constexpr bool isDefined(std::floating_point auto value)
Definition Comparison.h:23
static bool isUndefined(json &j)
Definition TreeDeserialization.cpp:24
constexpr bool isinf(auto value)
Definition Comparison.h:30
constexpr auto maxOrDefined(std::floating_point auto a, std::floating_point auto b)
Definition Comparison.h:35
constexpr auto minOrDefined(std::floating_point auto a, std::floating_point auto b)
Definition Comparison.h:44
bool inexactEquals(float a, float b)
Definition Comparison.h:56