bug #1134: fix JacobiSVD pre-allocation

(grafted from f22036f5f8bbaa349e090327d246c817bac94ee4
)
This commit is contained in:
Gael Guennebaud 2015-12-11 11:59:11 +01:00
parent ca39b1546e
commit b60a8967f5

View File

@ -666,7 +666,7 @@ void JacobiSVD<MatrixType, QRPreconditioner>::allocate(Index rows, Index cols, u
if(m_cols>m_rows) m_qr_precond_morecols.allocate(*this);
if(m_rows>m_cols) m_qr_precond_morerows.allocate(*this);
if(m_cols!=m_cols) m_scaledMatrix.resize(rows,cols);
if(m_rows!=m_cols) m_scaledMatrix.resize(rows,cols);
}
template<typename MatrixType, int QRPreconditioner>