Anonymous avatar Anonymous committed 39b9a8b

only perform column swaps on non-zero rows in mzd_echelonize_pluq. For some sparse matrices, this gives an advantage

Comments (0)

Files changed (1)

     mzd_t *R = mzd_init_window(A, r, 0, A->nrows, A->ncols);
     mzd_set_ui(R, 0);
+    mzd_t *A0 = mzd_init_window(A, 0, 0, r, A->ncols);
+    mzd_apply_p_right(A0, Q);
+    mzd_free_window(A0);
+  } else {
+    mzd_apply_p_right(A, Q);
-  mzd_apply_p_right(A, Q);
   return r;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.