_fmpz_mod_poly_set_length
Synopsis
#include <flint/fmpz_mod_poly.h>void _fmpz_mod_poly_set_length(fmpz_mod_poly_t poly, slong len)sourceSets the length of poly to len. If len is smaller than the current length, the discarded coefficients are set to zero (freeing their memory); otherwise the coefficients between the old and the new length must already be valid. The result is not normalised.
Cite this page
The FLINT team, “_fmpz_mod_poly_set_length (fmpz_mod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mod_poly/_fmpz_mod_poly_set_length.html (generated 2026-10-20).
@misc{flint-doc-fmpz-mod-poly-fmpz-mod-poly-set-length,
author = {{The FLINT team}},
title = {{\_fmpz\_mod\_poly\_set\_length (fmpz\_mod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mod_poly/_fmpz_mod_poly_set_length.html},
note = {Generated 2026-10-20}
}