| 16 | |
| 17 | template<typename Type1, typename Type2> |
| 18 | inline 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. |