diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-12-11 11:59:11 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-12-11 11:59:11 +0100 |
commit | b60a8967f549250c2701112a029853e2d2d8ae64 (patch) | |
tree | 0d9feced3a10f8c27dacdecd518d5aa679fc0066 /Eigen/src/SVD/JacobiSVD.h | |
parent | ca39b1546efb7d356685e0e0b198a19352ca5225 (diff) |
bug #1134: fix JacobiSVD pre-allocation
(grafted from f22036f5f8bbaa349e090327d246c817bac94ee4
)
Diffstat (limited to 'Eigen/src/SVD/JacobiSVD.h')
-rw-r--r-- | Eigen/src/SVD/JacobiSVD.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SVD/JacobiSVD.h b/Eigen/src/SVD/JacobiSVD.h index e29d36cf2..da1dbf5e7 100644 --- a/Eigen/src/SVD/JacobiSVD.h +++ b/Eigen/src/SVD/JacobiSVD.h @@ -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> |