mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-26 06:44:27 +08:00
fix use of rank in QR
This commit is contained in:
parent
b09bb50aeb
commit
ccc6731f86
@ -270,6 +270,9 @@ bool QR<MatrixType>::solve(
|
||||
ei_assert(m_isInitialized && "QR is not initialized.");
|
||||
const int rows = m_qr.rows();
|
||||
ei_assert(b.rows() == rows);
|
||||
// enforce the computation of the rank
|
||||
rank();
|
||||
|
||||
result->resize(m_qr.cols(), b.cols());
|
||||
|
||||
// TODO(keir): There is almost certainly a faster way to multiply by
|
||||
|
Loading…
x
Reference in New Issue
Block a user