Make FullPivLU::solve use rank() instead of nonzeroPivots().

This commit is contained in:
Gael Guennebaud 2015-11-21 15:03:04 +01:00
parent a367804856
commit b265979a70

View File

@ -720,7 +720,7 @@ void FullPivLU<_MatrixType>::_solve_impl(const RhsType &rhs, DstType &dst) const
const Index rows = this->rows(),
cols = this->cols(),
nonzero_pivots = this->nonzeroPivots();
nonzero_pivots = this->rank();
eigen_assert(rhs.rows() == rows);
const Index smalldim = (std::min)(rows, cols);