FLINT3.7.0-dev

gr_mat_swap

Synopsis#include <flint/gr_mat.h>
void gr_mat_swap(gr_mat_t mat1, gr_mat_t mat2, gr_ctx_t ctx)source

Swaps mat1 and mat2 in constant time by exchanging the structures.

Cite this page

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