mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-06 19:29:08 +08:00
Make FullPivLU::solve use rank() instead of nonzeroPivots().
This commit is contained in:
parent
a367804856
commit
b265979a70
@ -720,7 +720,7 @@ void FullPivLU<_MatrixType>::_solve_impl(const RhsType &rhs, DstType &dst) const
|
|||||||
|
|
||||||
const Index rows = this->rows(),
|
const Index rows = this->rows(),
|
||||||
cols = this->cols(),
|
cols = this->cols(),
|
||||||
nonzero_pivots = this->nonzeroPivots();
|
nonzero_pivots = this->rank();
|
||||||
eigen_assert(rhs.rows() == rows);
|
eigen_assert(rhs.rows() == rows);
|
||||||
const Index smalldim = (std::min)(rows, cols);
|
const Index smalldim = (std::min)(rows, cols);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user