RealQZ: bug in splitOffTwoRows fixed

This commit is contained in:
Alexey Korepanov 2012-07-25 12:17:00 -05:00
parent bf7d986af6
commit a3a9773ab6

View File

@ -306,7 +306,7 @@ namespace Eigen {
template<typename MatrixType>
inline void RealQZ<MatrixType>::splitOffTwoRows(Index i) {
const Index dim=m_S.cols();
if (internal::abs(m_S.coeff(i+1,1)==Scalar(0)))
if (internal::abs(m_S.coeff(i+1,i)==Scalar(0)))
return;
Index z = findSmallDiagEntry(i,i+1);
if (z==i-1) {