aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Konstantinos Margaritis <konstantinos.margaritis@freevec.org>2014-09-21 14:02:51 +0300
committerGravatar Konstantinos Margaritis <konstantinos.margaritis@freevec.org>2014-09-21 14:02:51 +0300
commit60e093a9dce2f8d4c0f3b2ea3e0386d5f01bff8d (patch)
tree05442eeff0bcfe7fe85ce59cf5fa72aa06ee2a07 /test/main.h
parent56408504e4e3fa5f9c59d9edac14ca1ba1255e5a (diff)
parent03dd4dd91a5d8963f56eebe3b9d2eb924bc06e02 (diff)
Merged eigen/eigen into default
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/main.h b/test/main.h
index 7667eaa18..371c7e602 100644
--- a/test/main.h
+++ b/test/main.h
@@ -94,6 +94,9 @@ namespace Eigen
static bool g_has_set_repeat, g_has_set_seed;
}
+#define TRACK std::cerr << __FILE__ << " " << __LINE__ << std::endl
+// #define TRACK while()
+
#define EI_PP_MAKE_STRING2(S) #S
#define EI_PP_MAKE_STRING(S) EI_PP_MAKE_STRING2(S)
@@ -311,13 +314,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