FLINT3.7.0-dev

_ca_vec_swap, ca_vec_swap

Synopsis#include <flint/ca_vec.h>
void _ca_vec_swap(ca_ptr vec1, ca_ptr vec2, slong len, ca_ctx_t ctx)source
void ca_vec_swap(ca_vec_t vec1, ca_vec_t vec2, ca_ctx_t ctx)source

Swaps the contents of the two vectors, entry by entry for the underscore version (which requires arrays of the same length len), and by exchanging the structures in constant time for ca_vec_swap.

Cite this page

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