FLINT3.7.0-dev

GR_TMP_INIT_VEC, GR_TMP_CLEAR_VEC

Synopsis#include <flint/gr.h>
GR_TMP_INIT_VEC(vec, len, ctx)source
GR_TMP_CLEAR_VEC(vec, len, ctx)source

Allocate a temporary array of len elements initialised to zero and assign it to vec; clear and free it. The array is placed on the stack if it takes at most GR_TMP_VEC_ALLOC_MAX_STACK (1024) bytes and on the heap otherwise. The same rules about loops apply.

Guides#

Cite this page

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