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

Function isApproxAbs

test/packetmath.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31// NOTE: we disbale inlining for this function to workaround a GCC issue when using -O3 and the i387 FPU.
32template<typename Scalar> EIGEN_DONT_INLINE
33bool isApproxAbs(const Scalar& a, const Scalar& b, const typename NumTraits<Scalar>::Real& refvalue)
34{
35 return internal::isMuchSmallerThan(a-b, refvalue);
36}
37
38template<typename Scalar> bool areApproxAbs(const Scalar* a, const Scalar* b, int size, const typename NumTraits<Scalar>::Real& refvalue)
39{

Callers 3

areApproxAbsFunction · 0.85
packetmathFunction · 0.85

Calls 1

isMuchSmallerThanFunction · 0.85

Tested by

no test coverage detected