wrtobin / las

Zero-overhead interfaces to Linear Algebraic data structures and Solvers
1 stars 1 forks source link

CSR Coordinate/matrix market output #45

Closed jacobmerson closed 6 years ago

jacobmerson commented 6 years ago

I need to print some large sparse matrices for comparison. To alleviate the cost/memory requirements of writing a sparse matrix in full format I am planning to add a coordinate/matrixmarket type output for sparskit matrices.

I am planning to sligtly modify this interface: https://github.com/tobinw/las/blob/98c54807568d68e8a65b525a6b881a4897c39acd/src/lasSparskit.h#L23

to:

void printSparskitMat(std::ostream &, Mat * m, format='full');

@tobinw any issues with this?

wrtobin commented 6 years ago

What is the planned type of format out of curiosity, just an enum? Other than that as long as the default value of 'full' allows us to retain the established API for the function then yeah go to town.

jacobmerson commented 6 years ago

Yeah just an enum.