Silenced several double-promotion warnings

This commit is contained in:
Christoph Hertzberg
2016-05-22 18:17:04 +02:00
parent b5a7603822
commit 718521d5cf
12 changed files with 52 additions and 48 deletions

View File

@@ -503,7 +503,7 @@ void EigenSolver<MatrixType>::doComputeEigenvectors()
Scalar lastr(0), lastw(0);
Index l = n;
m_matT.coeffRef(n,n) = 1.0;
m_matT.coeffRef(n,n) = Scalar(1);
for (Index i = n-1; i >= 0; i--)
{
Scalar w = m_matT.coeff(i,i) - p;