FLINT3.7.0-dev

fq_mat_invert_rows, fq_mat_invert_cols

Synopsis#include <flint/fq_mat.h>
void fq_mat_invert_rows(fq_mat_t mat, slong * perm, const fq_ctx_t ctx)
void fq_mat_invert_cols(fq_mat_t mat, slong * perm, const fq_ctx_t ctx)

Reverse the order of the rows, respectively columns, of mat, by swapping row i and row r - 1 - i for 0 \le i < \lfloor r/2 \rfloor (and likewise for columns). If perm is not NULL, the same permutation is applied to it.

Cite this page

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