FLINT3.7.0-dev

fq_poly_factor_realloc, fq_poly_factor_fit_length

Synopsis#include <flint/fq_poly_factor.h>
void fq_poly_factor_realloc(fq_poly_factor_t fac, slong alloc, const fq_ctx_t ctx)
void fq_poly_factor_fit_length(fq_poly_factor_t fac, slong len, const fq_ctx_t ctx)

fq_poly_factor_realloc changes the allocation to alloc factors (clearing factors beyond it; alloc = 0 reinitialises fac). fq_poly_factor_fit_length ensures room for len factors, at least doubling the allocation when it grows.

Cite this page

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