FLINT3.7.0-dev

fmpz_mat_swap

Synopsis#include <flint/fmpz_mat.h>
void fmpz_mat_swap(fmpz_mat_t mat1, fmpz_mat_t mat2)source

Swaps mat1 and mat2 in constant time by swapping their structs. Must not be used with windows.

Guides#

Cite this page

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