_gr_poly_set_length
Synopsis
#include <flint/gr_poly.h>Sets the length of poly to len, which must not exceed the allocation, without normalising. When the polynomial is shortened, the coefficients beyond the new length are set to zero, which frees the memory of heap-allocated elements.
Cite this page
The FLINT team, “_gr_poly_set_length (gr_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_poly/_gr_poly_set_length.html (generated 2026-10-20).
@misc{flint-doc-gr-poly-gr-poly-set-length,
author = {{The FLINT team}},
title = {{\_gr\_poly\_set\_length (gr\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_poly/_gr_poly_set_length.html},
note = {Generated 2026-10-20}
}