FLINT3.7.0-dev

fq_mat_rref

Synopsis#include <flint/fq_mat.h>
slong fq_mat_rref(fq_mat_t B, const fq_mat_t A, const fq_ctx_t ctx)

Sets BB to the reduced row echelon form of AA and returns the rank of AA. The form is computed from an LU decomposition. BB may be aliased with AA. If AA is zero, BB is set to zero and 0 is returned.

Cite this page

The FLINT team, “fq_mat_rref (fq_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_mat/fq_mat_rref.html (generated 2026-11-02).