FLINT3.7.0-dev

nmod_poly_mat_swap, nmod_poly_mat_swap_entrywise

Synopsis#include <flint/nmod_poly_mat.h>
void nmod_poly_mat_swap(nmod_poly_mat_t mat1, nmod_poly_mat_t mat2)source
void nmod_poly_mat_swap_entrywise(nmod_poly_mat_t mat1, nmod_poly_mat_t mat2)source

Swaps two matrices in constant time by swapping their structs (not for windows), respectively swaps the entries of two matrices of the same dimensions one by one.

Cite this page

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