diff options
author | 2010-12-10 15:53:13 +0100 | |
---|---|---|
committer | 2010-12-10 15:53:13 +0100 | |
commit | e736df3eddf0f2b8623653a66b8654f7770f03c8 (patch) | |
tree | 10345a090355fea2679d12a77fa44bbef7b31988 | |
parent | 79cc86f701a905a0f8c1fb9adfcede09b3b09120 (diff) |
suppress stupid warning
-rw-r--r-- | Eigen/src/Eigenvalues/RealSchur.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Eigen/src/Eigenvalues/RealSchur.h b/Eigen/src/Eigenvalues/RealSchur.h index e250d9a86..e8b2f1a99 100644 --- a/Eigen/src/Eigenvalues/RealSchur.h +++ b/Eigen/src/Eigenvalues/RealSchur.h @@ -247,7 +247,7 @@ RealSchur<MatrixType>& RealSchur<MatrixType>::compute(const MatrixType& matrix, { m_matT.coeffRef(iu,iu) = m_matT.coeff(iu,iu) + exshift; if (iu > 0) - m_matT.coeffRef(iu, iu-1) = Scalar(0); + m_matT.coeffRef(iu, iu-1) = Scalar(0); iu--; iter = 0; } @@ -259,7 +259,8 @@ RealSchur<MatrixType>& RealSchur<MatrixType>::compute(const MatrixType& matrix, } else // No convergence yet { - Vector3s firstHouseholderVector, shiftInfo; + // The firstHouseholderVector vector has to be initialized to something to get rid of a silly GCC warning (-O1 -Wall -DNDEBUG ) + Vector3s firstHouseholderVector(0,0,0), shiftInfo; computeShift(iu, iter, exshift, shiftInfo); iter = iter + 1; if (iter > m_maxIterations) break; @@ -443,7 +444,7 @@ inline void RealSchur<MatrixType>::performFrancisQRStep(Index il, Index im, Inde m_matT.block(k, k, 3, size-k).applyHouseholderOnTheLeft(ess, tau, workspace); m_matT.block(0, k, std::min(iu,k+3) + 1, 3).applyHouseholderOnTheRight(ess, tau, workspace); if (computeU) - m_matU.block(0, k, size, 3).applyHouseholderOnTheRight(ess, tau, workspace); + m_matU.block(0, k, size, 3).applyHouseholderOnTheRight(ess, tau, workspace); } } |