Expand description
Matrix Market I/O.
sprs::io::write_matrix_market_sym writes the upper triangle, but the
Matrix Market spec calls for the lower triangle (i ≥ j). To stay
compatible with strict readers (e.g. fast_matrix_market), we hand roll
the symmetric writer. We delegate to sprs for general (non symmetric)
output and for reading.
Functions§
- emit_
mtx - emit_
vector_ mtx - Emit a dense vector as Matrix Market
array real general. - read_
mtx - Read a Matrix Market file into a CSR matrix.
- read_
vector_ mtx - Read a dense vector emitted by
emit_vector_mtx(array real general):%-comment lines, a<len> 1dimensions line, then one value per line. - to_
mtx_ bytes - The complete Matrix Market text for one matrix, symmetric when the header round trips exactly and general otherwise.
- to_
vector_ mtx_ bytes - The complete Matrix Market
array real generaltext for one vector.