Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouilla committed Oct 2, 2023
1 parent 33afc7d commit 6369e7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/sparse_usolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int main(int argc, char **argv)
exit(EXIT_SUCCESS);
}

assert(n<= m); // upper-trapezoidal
assert(n <= m); // upper-trapezoidal
assert(spasm_is_upper_triangular(U));

// load RHS
Expand All @@ -59,10 +59,11 @@ int main(int argc, char **argv)
xi[j] = 0;
spasm_ZZp *x = malloc(n * sizeof(*x));
spasm_ZZp *y = malloc(m * sizeof(*y));
for (int j = 0; j < m; j++) {
for (int j = 0; j < n; j++)
x[j] = 0;
for (int j = 0; j < m; j++)
y[j] = 0;
}

int *qinv = malloc(m * sizeof(int));
for (int j = 0; j < n; j++)
qinv[j] = j;
Expand Down

0 comments on commit 6369e7b

Please sign in to comment.