fmpz_poly_fit_length
Synopsis
#include <flint/fmpz_poly.h>void fmpz_poly_fit_length(fmpz_poly_t poly, slong len)sourceEnsures 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 with increasing lengths cost amortised linear time. The length and the coefficients are not changed.
Guides#
Cite this page
The FLINT team, “fmpz_poly_fit_length (fmpz_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_poly/fmpz_poly_fit_length.html (generated 2026-10-20).
@misc{flint-doc-fmpz-poly-fmpz-poly-fit-length,
author = {{The FLINT team}},
title = {{fmpz\_poly\_fit\_length (fmpz\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_poly/fmpz_poly_fit_length.html},
note = {Generated 2026-10-20}
}