| 49 | } |
| 50 | |
| 51 | template<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) \ |