Skip to content

Create sparse matrix with contiguous memory for MatrixMarket.

Markus Blatt requested to merge feature/matrixmarket-contiguous into master

The current behavior (allocating each row separately ) is rather surprising and unnecessary as the matrix market file stores the number of nonzeros anyway. Hence we now pass this number to BCRSMatrix::SetSize to get the most efficient behavior.

Note that currently the only way to get a matrix with contiguous memory is to copy it.

Merge request reports

Loading