FLINT3.7.0-dev

_gr_vec_init, _gr_vec_clear

Synopsis#include <flint/gr_vec.h>
void _gr_vec_init(gr_ptr vec, slong len, gr_ctx_t ctx)source
void _gr_vec_clear(gr_ptr vec, slong len, gr_ctx_t ctx)source

Initialise the len elements of the array vec to zero, respectively clear them, freeing the memory they own but not the array itself. The array memory is allocated by the caller (see also gr_heap_init_vec and GR_TMP_INIT_VEC).

Cite this page

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