FLINT3.7.0-dev

fmpz_mod_poly_fit_length, _fmpz_mod_poly_fit_length

Synopsis#include <flint/fmpz_mod_poly.h>
void fmpz_mod_poly_fit_length(fmpz_mod_poly_t poly, slong len, const fmpz_mod_ctx_t ctx)source
void _fmpz_mod_poly_fit_length(fmpz_mod_poly_t poly, slong len)source

Ensure that poly has space for at least len coefficients. If it has to grow, it grows to at least twice the old allocation, so that repeated calls cost amortised linear time. The length and coefficients are not changed.

Cite this page

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