Skip to content

Commit

Permalink
verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouilla committed Sep 4, 2023
1 parent 0205440 commit 174fad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spasm_echelonize.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ void spasm_echelonize_GPLU(spasm *A, const int *p, int n, spasm *U, int *qinv, s

static void dense_update_U(spasm *U, int rr, int Sm, const double *S, const size_t *Sp, const int *q, int *Uqinv)
{
i64 extra_nnz = (2*Sm + 1 - rr) * rr / 2; /* maximum size increase */
i64 extra_nnz = ((i64) (2*Sm + 1 - rr)) * rr / 2; /* maximum size increase */
i64 unz = spasm_nnz(U);
fprintf(stderr, "[dense update] enlarging U from %" PRId64 " to %" PRId64 " entries\n", unz, unz + extra_nnz);
spasm_csr_realloc(U, unz + extra_nnz);
i64 *Up = U->p;
int *Uj = U->j;
Expand Down
1 change: 1 addition & 0 deletions tests/dense_lsolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <assert.h>

#include "spasm.h"
#include "test_tools.h"

int main(int argc, char **argv) {
spasm_triplet *T;
Expand Down

0 comments on commit 174fad1

Please sign in to comment.