Skip to content

Commit

Permalink
potentially skip expensive pivot search
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouilla committed Sep 3, 2023
1 parent bb2dcf1 commit 56d5790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spasm_pivots.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ int spasm_find_pivots(spasm * A, int *p, int *qinv, struct echelonize_opts *opts
spasm_vector_set(qinv, 0, m, -1);
int npiv = spasm_find_FL_pivots(A, p, qinv);
npiv = spasm_find_FL_column_pivots(A, p, qinv, npiv);
npiv = spasm_find_cycle_free_pivots(A, p, qinv, npiv);
if (opts->enable_greedy_pivot_search)
npiv = spasm_find_cycle_free_pivots(A, p, qinv, npiv);

/*
* build row permutation. Pivotal rows go first in topological order,
Expand Down

0 comments on commit 56d5790

Please sign in to comment.