mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
suppress stupid warning
This commit is contained in:
parent
79cc86f701
commit
e736df3edd
@ -247,7 +247,7 @@ RealSchur<MatrixType>& RealSchur<MatrixType>::compute(const MatrixType& matrix,
|
|||||||
{
|
{
|
||||||
m_matT.coeffRef(iu,iu) = m_matT.coeff(iu,iu) + exshift;
|
m_matT.coeffRef(iu,iu) = m_matT.coeff(iu,iu) + exshift;
|
||||||
if (iu > 0)
|
if (iu > 0)
|
||||||
m_matT.coeffRef(iu, iu-1) = Scalar(0);
|
m_matT.coeffRef(iu, iu-1) = Scalar(0);
|
||||||
iu--;
|
iu--;
|
||||||
iter = 0;
|
iter = 0;
|
||||||
}
|
}
|
||||||
@ -259,7 +259,8 @@ RealSchur<MatrixType>& RealSchur<MatrixType>::compute(const MatrixType& matrix,
|
|||||||
}
|
}
|
||||||
else // No convergence yet
|
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);
|
computeShift(iu, iter, exshift, shiftInfo);
|
||||||
iter = iter + 1;
|
iter = iter + 1;
|
||||||
if (iter > m_maxIterations) break;
|
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(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);
|
m_matT.block(0, k, std::min(iu,k+3) + 1, 3).applyHouseholderOnTheRight(ess, tau, workspace);
|
||||||
if (computeU)
|
if (computeU)
|
||||||
m_matU.block(0, k, size, 3).applyHouseholderOnTheRight(ess, tau, workspace);
|
m_matU.block(0, k, size, 3).applyHouseholderOnTheRight(ess, tau, workspace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user