FLINT3.7.0-dev

fmpq_mpoly_factor_realloc, fmpq_mpoly_factor_fit_length

Synopsis#include <flint/fmpq_mpoly_factor.h>
void fmpq_mpoly_factor_realloc(fmpq_mpoly_factor_t f, slong alloc, const fmpq_mpoly_ctx_t ctx)source
void fmpq_mpoly_factor_fit_length(fmpq_mpoly_factor_t f, slong len, const fmpq_mpoly_ctx_t ctx)source

Change the allocation to exactly alloc factors (freeing the factors beyond it, and everything if \mathit{alloc} \le 0), respectively ensure room for at least len factors.

Cite this page

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