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.
check_equivalence
1 parent f182c83 commit 8e3cb3eCopy full SHA for 8e3cb3e
examples/check_equivalence.c
@@ -101,6 +101,17 @@ int main(int argc, char** argv) {
101
bsp_matrix_t matrix1 = bsp_read_matrix(info1.fname, info1.dataset);
102
bsp_matrix_t matrix2 = bsp_read_matrix(info2.fname, info2.dataset);
103
104
+ bool perform_suitesparse_declamping = true;
105
+ if (perform_suitesparse_declamping &&
106
+ strcmp(bsp_get_file_extension(file1), ".mtx") == 0) {
107
+ bsp_matrix_declamp_values(matrix1);
108
+ }
109
+
110
111
+ strcmp(bsp_get_file_extension(file2), ".mtx") == 0) {
112
+ bsp_matrix_declamp_values(matrix2);
113
114
115
// If matrices are not the same format, try to convert.
116
if (matrix1.format != matrix2.format) {
117
if (matrix1.format != BSP_COOR) {
0 commit comments