fmpq_poly_realloc
Synopsis
#include <flint/fmpq_poly.h>void fmpq_poly_realloc(fmpq_poly_t poly, slong alloc)sourceReallocates 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).
@misc{flint-doc-fmpq-poly-fmpq-poly-realloc,
author = {{The FLINT team}},
title = {{fmpq\_poly\_realloc (fmpq\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq_poly/fmpq_poly_realloc.html},
note = {Generated 2026-10-20}
}