FLINT3.7.0-dev

gr_heap_init_vec, gr_heap_clear_vec

Synopsis#include <flint/gr.h>
gr_ptr gr_heap_init_vec(slong len, gr_ctx_t ctx)source
void gr_heap_clear_vec(gr_ptr x, slong len, gr_ctx_t ctx)source

Allocate an array of len contiguous elements on the heap, initialised to zero; clear the len elements and free the array.

Guides#

Cite this page

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