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 B to the reduced row echelon form of A and returns the rank of A. The form is computed from an LU decomposition. B may be aliased with A. If A is zero, B 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-10-20).