Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added compatibility with Flint 3.1.0 #3152

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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