From 5eabf2b75da885d8e0134e0c02f9b5f5f7dfa8c0 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 29 Jun 2009 00:00:29 +0200 Subject: [PATCH] double precision() : change to 1e-12 instead of 1e-11 (as discussed several times on the list) --- Eigen/src/Core/MathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 8cb1f7b40..3527042f9 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -151,7 +151,7 @@ inline bool ei_isApproxOrLessThan(float a, float b, float prec = precision inline double precision() { return 1e-11; } +template<> inline double precision() { return 1e-12; } template<> inline double machine_epsilon() { return 2.220e-16; } inline double ei_real(double x) { return x; }