mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
remove dummy code in ColPivHouseholderQR::solve
This commit is contained in:
parent
19c78cf510
commit
ee36eaefc6
@ -487,14 +487,6 @@ struct solve_retval<ColPivHouseholderQR<_MatrixType>, Rhs>
|
||||
.template triangularView<Upper>()
|
||||
.solveInPlace(c.topRows(nonzero_pivots));
|
||||
|
||||
|
||||
typename Rhs::PlainObject d(c);
|
||||
d.topRows(nonzero_pivots)
|
||||
= dec().matrixQR()
|
||||
.topLeftCorner(nonzero_pivots, nonzero_pivots)
|
||||
.template triangularView<Upper>()
|
||||
* c.topRows(nonzero_pivots);
|
||||
|
||||
for(Index i = 0; i < nonzero_pivots; ++i) dst.row(dec().colsPermutation().indices().coeff(i)) = c.row(i);
|
||||
for(Index i = nonzero_pivots; i < cols; ++i) dst.row(dec().colsPermutation().indices().coeff(i)).setZero();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user