diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-07-31 13:35:49 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-07-31 13:35:49 +0200 |
commit | bae2e3327b27a21e5024e235255f403cfe1be2c5 (patch) | |
tree | eb4062df08f8321a0dda35eb5492f075c3df642e /test/main.h | |
parent | cd0ff253ec906f0b4604ec084df3d7e7cc6811d1 (diff) |
Call product_generic_impl by default, and remove lot of boilerplate code
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/main.h b/test/main.h index 57996956d..e89b5a305 100644 --- a/test/main.h +++ b/test/main.h @@ -279,13 +279,7 @@ inline bool test_isApproxOrLessThan(const long double& a, const long double& b) template<typename Type1, typename Type2> inline bool test_isApprox(const Type1& a, const Type2& b) { -#ifdef EIGEN_TEST_EVALUATORS - typename internal::eval<Type1>::type a_eval(a); - typename internal::eval<Type2>::type b_eval(b); - return a_eval.isApprox(b_eval, test_precision<typename Type1::Scalar>()); -#else return a.isApprox(b, test_precision<typename Type1::Scalar>()); -#endif } // The idea behind this function is to compare the two scalars a and b where |