Improve loading of symmetric sparse matrices in MatrixMarketIterator

This commit is contained in:
Gael Guennebaud
2015-06-05 10:16:29 +02:00
parent acc761cf0c
commit 3e7bc8d686
2 changed files with 23 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename)
if(M > 0 && N > 0 && NNZ > 0)
{
readsizes = true;
std::cout << "sizes: " << M << "," << N << "," << NNZ << "\n";
//std::cout << "sizes: " << M << "," << N << "," << NNZ << "\n";
mat.resize(M,N);
mat.reserve(NNZ);
}