47 typename std::enable_if_t<std::is_floating_point<H>::value,
int> = 0
52 return std::abs(lhs - rhs) <= std::numeric_limits<H>::epsilon() * (std::max)(std::abs(lhs), std::abs(rhs)) *
static_cast<H
>(ulp);
constexpr bool AreAlmostEqual(H lhs, H rhs, uint32_t ulp)
Compares two floating-point values for approximate equality using a ULP-based tolerance.
Definition peak_common_math.hpp:50
Namespace for internal implementation details and low-level types.
Definition peak_common_math.hpp:24
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:22
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33