Macaulay2 Engine
Loading...
Searching...
No Matches

◆ rowReducedEchelonForm() [1/6]

size_t MatrixOps::rowReducedEchelonForm ( const DMatGFFlint & A,
DMatGFFlint & result_rref )
inline

Definition at line 1026 of file mat-linalg.hpp.

1028{
1029 DMatGFFlint A1(A);
1030#if __FLINT_RELEASE >= 30100
1031 long rank = fq_zech_mat_rref(A1.fq_zech_mat(), A1.fq_zech_mat(), A.ring().flintContext());
1032#else
1033 long rank = fq_zech_mat_rref(A1.fq_zech_mat(), A.ring().flintContext());
1034#endif
1035 result_rref.swap(A1);
1036 return rank;
1037}
const ACoeffRing & ring() const
void swap(DMat< ACoeffRing > &M)
const fq_zech_ctx_struct * flintContext() const
DMat< M2::ARingGFFlint > DMatGFFlint
size_t rank(const Mat &A)
the rank of a matrix

References M2::ARingGFFlint::flintContext(), DMat< M2::ARingGFFlint >::fq_zech_mat(), rank(), DMat< M2::ARingGFFlint >::ring(), and DMat< M2::ARingGFFlint >::swap().