FLINT3.7.0-dev

fmpz_mpoly_realloc

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpoly_realloc(fmpz_mpoly_t A, slong alloc, const fmpz_mpoly_ctx_t ctx)source

Changes the allocation of A to alloc terms. Terms beyond alloc are discarded, which can leave a polynomial that is not the truncation of interest but is still canonical. With alloc equal to zero, A is freed and reinitialised.

Cite this page

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