Skip to content

Commit dedad39

Browse files
committed
Readme improvement
1 parent b4646be commit dedad39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ The `write_matrix_market_*` methods accept a `std::ostream` and a datastructure.
8686

8787
The methods also accept an optional `header` argument that can be used to read and write file metadata, such as the comment or whether the matrix is a `pattern`.
8888

89+
**Important: Open files in binary mode.**
90+
8991
## Coordinate / Triplets
9092

9193
Matrix composed of row and column index vectors and a value vector. Any vector class that can be resized and iterated like `std::vector` will work.
@@ -105,6 +107,8 @@ fast_matrix_market::read_matrix_market_triplet(
105107
106108
Doublet sparse vectors, composed of index and value vectors, are supported in a similar way by `read_matrix_market_doublet()`.
107109
110+
CSC and CSR matrices composed of `indptr`, `indices`, and `values` arrays can be written directly with `write_matrix_market_csc()`.
111+
108112
## Dense arrays
109113
110114
Any vector class that can be resized and iterated like `std::vector` will work.

0 commit comments

Comments
 (0)