FLINT3.7.0-dev

nmod_poly_realloc

Synopsis#include <flint/nmod_poly.h>
void nmod_poly_realloc(nmod_poly_t poly, slong alloc)source

Changes the allocated space of poly to alloc coefficients. If the length exceeds alloc, the polynomial is truncated to length alloc and normalised. For alloc = 0 the coefficients are freed and poly becomes zero.

Cite this page

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