SparseMatrix::resize() always resets the matrix to an empty one

This commit is contained in:
Gael Guennebaud
2009-06-08 14:12:11 +02:00
parent 55de162cf6
commit d97d307fcf
2 changed files with 4 additions and 3 deletions

View File

@@ -192,7 +192,6 @@ static void ei_sparse_product_impl(const Lhs& lhs, const Rhs& rhs, ResultType& r
float ratioRes = std::min(ratioLhs * avgNnzPerRhsColumn, 1.f);
res.resize(rows, cols);
res.setZero();
res.reserve(int(ratioRes*rows*cols));
for (int j=0; j<cols; ++j)
{