Skip to content

Commit

Permalink
quel gros crétin
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouilla committed Sep 5, 2023
1 parent b1a501f commit 895d970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spasm_echelonize.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ void spasm_echelonize_dense_lowrank(spasm *A, const int *p, int n, spasm *U, int
* - this is approximately w >= log 0.01 * n / rank_ub
*/
int rank_ub = spasm_min(n, Sm);
int w = (opts->low_rank_start_weight < 0) ? ceil(log(0.01) * n / rank_ub) : opts->low_rank_start_weight;
int w = (opts->low_rank_start_weight < 0) ? ceil(-log(0.01) * n / rank_ub) : opts->low_rank_start_weight;

for (;;) {
/* compute a chunk of the schur complement, then echelonize with FFPACK */
rank_ub = spasm_min(n, Sm);
Expand Down

0 comments on commit 895d970

Please sign in to comment.