Skip to content

Commit

Permalink
use parallel FFPACK
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouilla committed Sep 4, 2023
1 parent 581a8cb commit f07a01e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/spasm_ffpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int spasm_ffpack_echelonize(int prime, int n, int m, double *A, int ldA, size_t
P[i] = 0;
for (int j = 0; j < m; j++)
Qt[j] = 0;
size_t rank = FFPACK::ReducedRowEchelonForm(GFp, n, m, A, ldA, P, Qt, 0, FFPACK::FfpackTileRecursive);
size_t rank = FFPACK::pReducedRowEchelonForm(GFp, n, m, A, ldA, P, Qt);
fprintf(stderr, "done in %.1fs. Rank %zd\n", spasm_wtime() - start, rank);
start = spasm_wtime();
fprintf(stderr, "[ffpack/echelonize] permuting... ");
Expand All @@ -44,7 +44,6 @@ int spasm_ffpack_echelonize(int prime, int n, int m, double *A, int ldA, size_t
// FFPACK::getReducedEchelonForm(GFp, FFLAS::FflasUpper, n, m, rank, Qt, A, ldA, FFPACK::FfpackTileRecursive);
/* Qt is in LAPACK representation; convert */
FFPACK::LAPACKPerm2MathPerm (qinv, Qt, m);
// FFPACK::LAPACKPerm2MathPerm (p, P, n);
FFLAS::fflas_delete(P);
FFLAS::fflas_delete(Qt);
fprintf(stderr, "%.1fs\n", spasm_wtime() - start);
Expand Down

0 comments on commit f07a01e

Please sign in to comment.