FLINT3.7.0-dev

gr_heap_init, gr_heap_clear

Synopsis#include <flint/gr.h>
gr_ptr gr_heap_init(gr_ctx_t ctx)source
void gr_heap_clear(gr_ptr x, gr_ctx_t ctx)source

Allocate one element on the heap with flint_malloc and initialise it to zero; clear and free an element allocated this way.

Guides#

Cite this page

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