From 05ed9be639bd588af95ef613c2df814c08d702e9 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Nov 2010 18:59:16 +0100 Subject: [PATCH] prevent warning --- Eigen/src/SVD/JacobiSVD.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/SVD/JacobiSVD.h b/Eigen/src/SVD/JacobiSVD.h index d180db7db..23b632a6b 100644 --- a/Eigen/src/SVD/JacobiSVD.h +++ b/Eigen/src/SVD/JacobiSVD.h @@ -551,7 +551,7 @@ JacobiSVD::compute(const MatrixType& matrix, unsig // currently we stop when we reach precision 2*epsilon as the last bit of precision can require an unreasonable number of iterations, // only worsening the precision of U and V as we accumulate more rotations - const RealScalar precision = 2 * NumTraits::epsilon(); + const RealScalar precision = RealScalar(2) * NumTraits::epsilon(); /*** step 1. The R-SVD step: we use a QR decomposition to reduce to the case of a square matrix */