FLINT3.7.0-dev

nmod_mat_invert_rows, nmod_mat_invert_cols

Synopsis#include <flint/nmod_mat.h>
void nmod_mat_invert_rows(nmod_mat_t mat, slong * perm)source
void nmod_mat_invert_cols(nmod_mat_t mat, slong * perm)source

Reverses the order of the rows (columns) of mat, that is, swaps rows (columns) i and r - 1 - i for 0 \le i < r/2, where r is the number of rows (columns). If perm is not NULL, the same permutation is applied to it.

Cite this page

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