FLINT3.7.0-dev

fmpz_mpoly_fit_length

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

Ensures that A has room for at least len terms, at least doubling the allocation when it grows, so that appending terms one by one costs amortised constant time per term.

Cite this page

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