FLINT3.7.0-dev

arb_mat_swap, arb_mat_swap_entrywise

Synopsis#include <flint/arb_mat.h>
void arb_mat_swap(arb_mat_t mat1, arb_mat_t mat2)source
void arb_mat_swap_entrywise(arb_mat_t mat1, arb_mat_t mat2)source

Swap two matrices. arb_mat_swap swaps the structures (also when the dimensions differ); arb_mat_swap_entrywise swaps the entries one by one and requires equal dimensions, which also works for windows.

Cite this page

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