FLINT3.7.0-dev

fmpq_poly_realloc

Synopsis#include <flint/fmpq_poly.h>
void fmpq_poly_realloc(fmpq_poly_t poly, slong alloc)source

Reallocates the given polynomial to have space for alloc coefficients. If alloc is zero then the polynomial is cleared and then reinitialised. If the current length is greater than alloc then poly is first truncated to length alloc. Note that this might leave the rational polynomial in non-canonical form.

Cite this page

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