FLINT3.7.0-dev

n_poly_realloc, n_poly_fit_length

Synopsis#include <flint/n_poly.h>
void n_poly_realloc(n_poly_t A, slong len)source
void n_poly_fit_length(n_poly_t A, slong len)source

Ensure that A has space for at least len coefficients. The allocation grows to \max(\mathit{len}, \tfrac32 \mathit{alloc} + 1) and never shrinks.

Cite this page

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