Skip to content

Commit

Permalink
added compatibility with Flint 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Mar 5, 2024
1 parent 2214a0d commit 4f4146b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions M2/Macaulay2/e/mat-linalg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,11 @@ inline size_t rowReducedEchelonForm(const DMatGFFlintBig& A,
DMatGFFlintBig& result_rref)
{
DMatGFFlintBig A1(A);
#if __FLINT_RELEASE >= 30100
long rank = fq_nmod_mat_rref(A1.fq_nmod_mat(), A1.fq_nmod_mat(), A.ring().flintContext());
#else
long rank = fq_nmod_mat_rref(A1.fq_nmod_mat(), A.ring().flintContext());
#endif
result_rref.swap(A1);
return rank;
}
Expand Down Expand Up @@ -925,7 +929,11 @@ inline size_t rowReducedEchelonForm(const DMatGFFlint& A,
DMatGFFlint& result_rref)
{
DMatGFFlint A1(A);
#if __FLINT_RELEASE >= 30100
long rank = fq_zech_mat_rref(A1.fq_zech_mat(), A1.fq_zech_mat(), A.ring().flintContext());
#else
long rank = fq_zech_mat_rref(A1.fq_zech_mat(), A.ring().flintContext());
#endif
result_rref.swap(A1);
return rank;
}
Expand Down

0 comments on commit 4f4146b

Please sign in to comment.