FLINT3.7.0-dev

nmod_mat_swap_rows, nmod_mat_swap_cols

Synopsis#include <flint/nmod_mat.h>
void nmod_mat_swap_rows(nmod_mat_t mat, slong * perm, slong r, slong s)source
void nmod_mat_swap_cols(nmod_mat_t mat, slong * perm, slong r, slong s)source

Swaps rows (columns) r and s of mat. If perm is not NULL, entries r and s of the array perm are swapped as well.

Cite this page

The FLINT team, “nmod_mat_swap_rows, nmod_mat_swap_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_swap_rows.html (generated 2026-10-20).