diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-11-10 18:59:16 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-11-10 18:59:16 +0100 |
commit | 05ed9be639bd588af95ef613c2df814c08d702e9 (patch) | |
tree | b8db604c42fe3a9938886e0cf05857fe03ca971a /Eigen | |
parent | 2577ef90c027d8bad4dd632022fa65cec6313159 (diff) |
prevent warning
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/SVD/JacobiSVD.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<MatrixType, QRPreconditioner>::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<Scalar>::epsilon(); + const RealScalar precision = RealScalar(2) * NumTraits<Scalar>::epsilon(); /*** step 1. The R-SVD step: we use a QR decomposition to reduce to the case of a square matrix */ |