MCPcopy Create free account
hub / github.com/RenderKit/oidn / equalityComparisonImpl

Method equalityComparisonImpl

external/catch.hpp:7890–7895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7888 }
7889
7890 bool Approx::equalityComparisonImpl(const double other) const {
7891 // First try with fixed margin, then compute margin based on epsilon, scale and Approx's value
7892 // Thanks to Richard Harris for his help refining the scaled margin value
7893 return marginComparison(m_value, other, m_margin)
7894 || marginComparison(m_value, other, m_epsilon * (m_scale + std::fabs(std::isinf(m_value)? 0 : m_value)));
7895 }
7896
7897 void Approx::setMargin(double newMargin) {
7898 CATCH_ENFORCE(newMargin >= 0,

Callers 1

operator ==Method · 0.80

Calls 1

marginComparisonFunction · 0.85

Tested by

no test coverage detected