FLINT3.7.0-dev

_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)source

Sets 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).