FLINT3.7.0-dev

gr_vec_append, gr_vec_append_swap

Synopsis#include <flint/gr_vec.h>
int gr_vec_append(gr_vec_t vec, gr_srcptr f, gr_ctx_t ctx)source
void gr_vec_append_swap(gr_vec_t vec, gr_ptr f, gr_ctx_t ctx)source

Append a copy of f to vec, respectively append f by swapping it into the new last entry (leaving f with the previous value of that entry, which is zero if it was never used). f must not point into vec, since appending may reallocate the array.

Guides#

Cite this page

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