GR_TMP_INIT_VEC, GR_TMP_CLEAR_VEC
Synopsis
#include <flint/gr.h>GR_TMP_INIT_VEC(vec, len, ctx)sourceGR_TMP_CLEAR_VEC(vec, len, ctx)sourceAllocate 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#
- Getting started with gr_poly (
gr_poly)
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).
@misc{flint-doc-gr-GR-TMP-INIT-VEC,
author = {{The FLINT team}},
title = {{GR\_TMP\_INIT\_VEC, GR\_TMP\_CLEAR\_VEC (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/GR_TMP_INIT_VEC.html},
note = {Generated 2026-10-20}
}