FLINT3.7.0-dev

gr_mat_invert_rows, gr_mat_invert_cols

Synopsis#include <flint/gr_mat.h>
int gr_mat_invert_rows(gr_mat_t mat, slong * perm, gr_ctx_t ctx)source
int gr_mat_invert_cols(gr_mat_t mat, slong * perm, gr_ctx_t ctx)source

Reverse the order of the rows (columns): swap row i and row r - 1 - i for 0 \le i < r/2, and apply the same permutation to perm if it is not NULL.

Cite this page

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