improve sparse permutations

This commit is contained in:
Charles Schlosser
2023-01-15 03:21:25 +00:00
parent 2e61c0c6b4
commit fa0bd2c34e
3 changed files with 181 additions and 75 deletions

View File

@@ -189,6 +189,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename)
readsizes = true;
mat.resize(M,N);
mat.reserve(NNZ);
elements.reserve(NNZ);
}
}
else