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.
1 parent faef4b0 commit 7b4383aCopy full SHA for 7b4383a
examples/bsp2mtx.c
@@ -21,7 +21,10 @@ 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
- matrix = bsp_convert_matrix(matrix, BSP_COO);
+ 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);
30
0 commit comments