From fe0827495ab34749b8896bbebc0ff9fcc661c13b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Feb 2010 10:52:28 +0100 Subject: * move dummy_precision and epsilon to NumTraits * make NumTraits inherits std::numeric_limits --- test/product.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/product.h') diff --git a/test/product.h b/test/product.h index 85afbe1e4..f6109fae4 100644 --- a/test/product.h +++ b/test/product.h @@ -26,7 +26,7 @@ #include template -bool areNotApprox(const MatrixBase& m1, const MatrixBase& m2, typename Derived1::RealScalar epsilon = dummy_precision()) +bool areNotApprox(const MatrixBase& m1, const MatrixBase& m2, typename Derived1::RealScalar epsilon = NumTraits::dummy_precision()) { return !((m1-m2).cwiseAbs2().maxCoeff() < epsilon * epsilon * std::max(m1.cwiseAbs2().maxCoeff(), m2.cwiseAbs2().maxCoeff())); -- cgit v1.2.3