FLINT3.7.0-dev

fmpz_mod_poly_realloc

Synopsis#include <flint/fmpz_mod_poly.h>
void fmpz_mod_poly_realloc(fmpz_mod_poly_t poly, slong alloc, const fmpz_mod_ctx_t ctx)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 polynomial is cleared and reinitialised.

Cite this page

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