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) rr and ss of mat. If perm is not NULL, entries rr and ss 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-11-02).