diff --git a/M2/Macaulay2/e/mat-linalg.hpp b/M2/Macaulay2/e/mat-linalg.hpp index 4f232f95901..de4c7e1761a 100644 --- a/M2/Macaulay2/e/mat-linalg.hpp +++ b/M2/Macaulay2/e/mat-linalg.hpp @@ -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; } @@ -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; }