FLINT3.7.0-dev

fq_poly_realloc

Synopsis#include <flint/fq_poly.h>
void fq_poly_realloc(fq_poly_t poly, slong alloc, const fq_ctx_t ctx)

Changes the allocation of poly to alloc coefficients, truncating and normalising the polynomial if it is longer. For alloc = 0 the coefficients are freed.

Cite this page

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