FLINT3.7.0-dev

nmod_mat_swap

Synopsis#include <flint/nmod_mat.h>
void nmod_mat_swap(nmod_mat_t mat1, nmod_mat_t mat2)source

Swaps mat1 and mat2 in constant time by swapping their structs. Must not be used with windows, whose entries belong to another matrix.

Cite this page

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