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

Function areApprox

test/packetmath.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51template<typename Scalar> bool areApprox(const Scalar* a, const Scalar* b, int size)
52{
53 for (int i=0; i<size; ++i)
54 {
55 if (a[i]!=b[i] && !internal::isApprox(a[i],b[i]))
56 {
57 std::cout << "ref: [" << Map<const Matrix<Scalar,1,Dynamic> >(a,size) << "]" << " != vec: [" << Map<const Matrix<Scalar,1,Dynamic> >(b,size) << "]\n";
58 return false;
59 }
60 }
61 return true;
62}
63
64#define CHECK_CWISE1(REFOP, POP) { \
65 for (int i=0; i<PacketSize; ++i) \

Callers 4

packetmathFunction · 0.85
packetmath_notcomplexFunction · 0.85
test_conj_helperFunction · 0.85
packetmath_complexFunction · 0.85

Calls 1

isApproxFunction · 0.50

Tested by 1

test_conj_helperFunction · 0.68