FLINT3.7.0-dev

fmpz_poly_realloc

Synopsis#include <flint/fmpz_poly.h>
void fmpz_poly_realloc(fmpz_poly_t poly, slong alloc)source

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

Cite this page

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