We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bsp2mtx
1 parent 6c87e03 commit 42d5074Copy full SHA for 42d5074
examples/bsp2mtx.c
@@ -21,6 +21,9 @@ int main(int argc, char** argv) {
21
printf(" === Reading file... ===\n");
22
bsp_matrix_t matrix = bsp_read_matrix(input_fname, NULL);
23
printf(" === Done writing. ===\n");
24
+ if (matrix.format != BSP_COO) {
25
+ matrix = bsp_convert_matrix(matrix, BSP_COO);
26
+ }
27
28
printf(" === Writing to %s... ===\n", output_fname);
29
bsp_mmwrite(output_fname, matrix);
0 commit comments