mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix remaining bug in ColPivHouseholderQR, so now all tests pass again
This commit is contained in:
@@ -366,7 +366,8 @@ struct ei_solve_retval<ColPivHouseholderQR<_MatrixType>, Rhs>
|
||||
.template triangularView<UpperTriangular>()
|
||||
.solveInPlace(c.corner(TopLeft, dec().rank(), c.cols()));
|
||||
|
||||
dst = dec().colsPermutation() * c;
|
||||
for(int i = 0; i < dec().rank(); ++i) dst.row(dec().colsPermutation().indices().coeff(i)) = c.row(i);
|
||||
for(int i = dec().rank(); i < cols; ++i) dst.row(dec().colsPermutation().indices().coeff(i)).setZero();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user