FLINT3.7.0-dev

nmod_poly_factor_realloc

Synopsis#include <flint/nmod_poly_factor.h>
void nmod_poly_factor_realloc(nmod_poly_factor_t fac, slong alloc)source

Changes the space of fac to exactly alloc factors. For alloc = 0 the factorisation is cleared and reinitialised (with space for 5 factors and \mathit{num} = 0). If alloc is smaller than the number of factors, the factors beyond the first alloc are discarded.

Cite this page

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