FLINT3.7.0-dev

_fmpz_mod_poly_shift_right, fmpz_mod_poly_shift_right

Synopsis#include <flint/fmpz_mod_poly.h>
void _fmpz_mod_poly_shift_right(fmpz * res, const fmpz * poly, slong len, slong n)source
void fmpz_mod_poly_shift_right(fmpz_mod_poly_t f, const fmpz_mod_poly_t g, slong n, const fmpz_mod_ctx_t ctx)source

Set the output to the input divided by x^n, discarding the low coefficients; the result is zero if n is at least the length. The underscore version writes len - n coefficients, requires \mathit{len} > n and allows res and poly to be the same array.

Cite this page

The FLINT team, “_fmpz_mod_poly_shift_right, fmpz_mod_poly_shift_right (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_shift_right.html (generated 2026-10-20).