FLINT3.7.0-dev

gr_vec_fit_length

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

Ensures that at least len entries are allocated, without changing the length; the allocation at least doubles when it grows. Allocated entries beyond the length are initialised (to zero).

Cite this page

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