FLINT3.7.0-dev

fmpq_mat_swap, fmpq_mat_swap_entrywise

Synopsis#include <flint/fmpq_mat.h>
void fmpq_mat_swap(fmpq_mat_t mat1, fmpq_mat_t mat2)source
void fmpq_mat_swap_entrywise(fmpq_mat_t mat1, fmpq_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, “fmpq_mat_swap, fmpq_mat_swap_entrywise (fmpq_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_mat/fmpq_mat_swap.html (generated 2026-10-20).