alugowski / fast_matrix_market

Fast and full-featured Matrix Market I/O library for C++, Python, and R
BSD 2-Clause "Simplified" License
71 stars 7 forks source link

Support skipping values #32

Open alugowski opened 1 year ago

alugowski commented 1 year ago

Support ability to read just the indices and ignore the values, i.e. pretend the file is a pattern file even if it isn't.

Example use case: unweighted graph algorithms.

Corner cases to think about:

alugowski commented 1 year ago

Implementation idea:

Add flag to read_options. Flag could be set automatically if the value type is pattern_placeholder_type, but should not require that.

Potentially make the flag have three states:

galaxy001 commented 6 months ago

For the third state, I wonder how fmm treat zero values in matrix market file. Like 12 3 0.

Does fmm skip those lines?