FLINT3.7.0-dev

_gr_poly_set_length

Synopsis#include <flint/gr_poly.h>
void _gr_poly_set_length(gr_poly_t poly, slong len, gr_ctx_t ctx)source

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).