Skip to content

Commit 7140270

Browse files
committed
Feat: use more optimize methods in wise method
1 parent a54546f commit 7140270

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

experimental/algorithm/LAGraph_CFL_reachability_advanced.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,23 +345,23 @@ GrB_Info matrix_wise_empty(Matrix *output, Matrix *first, Matrix *second, bool a
345345
return GrB_SUCCESS;
346346
}
347347

348-
return matrix_clear_format(output);
348+
return matrix_clear_empty(output);
349349
}
350350

351351
if (first->nvals == 0) {
352352
if (accum) {
353-
return matrix_wise_format(output, output, second, false);
353+
return matrix_wise_empty(output, output, second, false);
354354
}
355355

356-
return matrix_dup_format(output, second);
356+
return matrix_dup_empty(output, second);
357357
}
358358

359359
if (second->nvals == 0) {
360360
if (accum) {
361-
return matrix_wise_format(output, output, first, false);
361+
return matrix_wise_empty(output, output, first, false);
362362
}
363363

364-
return matrix_dup_format(output, first);
364+
return matrix_dup_empty(output, first);
365365
}
366366

367367
return matrix_wise_format(output, first, second, accum);

0 commit comments

Comments
 (0)