MCPcopy Create free account
hub / github.com/PX4/eigen / test_isApprox_abs

Function test_isApprox_abs

unsupported/test/matrix_function.cpp:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template<typename Type1, typename Type2>
18inline bool test_isApprox_abs(const Type1& a, const Type2& b)
19{
20 return ((a-b).array().abs() < test_precision<typename Type1::RealScalar>()).all();
21}
22
23
24// Returns a matrix with eigenvalues clustered around 0, 1 and 2.

Callers

nothing calls this directly

Calls 3

absMethod · 0.80
allMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected