MCPcopy Create free account
hub / github.com/davisking/dlib / approx_equal

Function approx_equal

dlib/test/optimization.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// ----------------------------------------------------------------------------------------
30
31 bool approx_equal (
32 double a,
33 double b
34 )
35 {
36 return std::abs(a - b) < 100*std::numeric_limits<double>::epsilon();
37 }
38
39// ----------------------------------------------------------------------------------------
40

Callers 5

test_apqFunction · 0.70
test_powellFunction · 0.70
test_simpleFunction · 0.70
test_rosenFunction · 0.70
test_neg_rosenFunction · 0.70

Calls 1

absFunction · 0.85

Tested by

no test coverage detected