FLINT3.7.0-dev

d_mat_swap_entrywise

Synopsis#include <flint/d_mat.h>
void d_mat_swap_entrywise(d_mat_t mat1, d_mat_t mat2)source

Swaps the entries of mat1 and mat2 one by one, rather than the structs; the row pointers of both matrices stay valid. The matrices must have the same dimensions.

Cite this page

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