FLINT3.7.0-dev

padic_poly_realloc

Synopsis#include <flint/padic_poly.h>
void padic_poly_realloc(padic_poly_t poly, slong alloc, const fmpz_t p)source

Reallocates poly to have space for exactly alloc coefficients. If the length is larger, the polynomial is first truncated and canonicalised with respect to p. With alloc = 0 the polynomial is cleared and reinitialised, which also resets its precision to PADIC_DEFAULT_PREC.

Cite this page

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