FLINT3.7.0-dev

nmod_poly_fit_length

Synopsis#include <flint/nmod_poly.h>
void nmod_poly_fit_length(nmod_poly_t poly, slong alloc)source

Ensures that poly has space for at least alloc 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, “nmod_poly_fit_length (nmod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly/nmod_poly_fit_length.html (generated 2026-10-20).