aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/product.cpp')
-rw-r--r--test/product.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/product.cpp b/test/product.cpp
index 7e859fb1f..ffc845ca4 100644
--- a/test/product.cpp
+++ b/test/product.cpp
@@ -26,7 +26,7 @@
#include <Eigen/QR>
template<typename Derived1, typename Derived2>
-bool areNotApprox(const MatrixBase<Derived1>& m1, const MatrixBase<Derived2>& m2, typename Derived1::Scalar epsilon = precision<typename Derived1::Scalar>())
+bool areNotApprox(const MatrixBase<Derived1>& m1, const MatrixBase<Derived2>& m2, typename Derived1::RealScalar epsilon = precision<typename Derived1::RealScalar>())
{
return !((m1-m2).matrixNorm() < epsilon * std::max(m1.matrixNorm(), m2.matrixNorm()));
}