FLINT3.7.0-dev

_nmod_mat_rref

Synopsis#include <flint/nmod_mat.h>
slong _nmod_mat_rref(nmod_mat_t A, slong * pivots_nonpivots, slong * P)source

Puts A in reduced row echelon form and returns the rank r, as nmod_mat_rref, and in addition stores in pivots_nonpivots (length the number of columns) the pivot columns followed by the other columns, and in P (length the number of rows) the row permutation of the LU decomposition used.

Cite this page

The FLINT team, “_nmod_mat_rref (nmod_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_mat/_nmod_mat_rref.html (generated 2026-10-20).