mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
prevent the allocation of the two preconditioner, only one is needed
This commit is contained in:
parent
aa3daad883
commit
3c9289129b
@ -732,8 +732,8 @@ void JacobiSVD<MatrixType, QRPreconditioner>::allocate(Index rows, Index cols, u
|
|||||||
: 0);
|
: 0);
|
||||||
m_workMatrix.resize(m_diagSize, m_diagSize);
|
m_workMatrix.resize(m_diagSize, m_diagSize);
|
||||||
|
|
||||||
m_qr_precond_morecols.allocate(*this);
|
if(m_cols>m_rows) m_qr_precond_morecols.allocate(*this);
|
||||||
m_qr_precond_morerows.allocate(*this);
|
if(m_rows>m_cols) m_qr_precond_morerows.allocate(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename MatrixType, int QRPreconditioner>
|
template<typename MatrixType, int QRPreconditioner>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user