FLINT3.7.0-dev

_nmod_poly_shift_right, nmod_poly_shift_right

Synopsis#include <flint/nmod_poly.h>
void _nmod_poly_shift_right(nn_ptr res, nn_srcptr poly, slong len, slong k)source
void nmod_poly_shift_right(nmod_poly_t res, const nmod_poly_t poly, slong k)source

Set res to poly divided by x^k, discarding the remainder, for k \ge 0. In the underscore version len is the length of the output: it sets res[i] = poly[i + k] for 0 \le i < \mathit{len}, so poly must have at least \mathit{len} + k coefficients. It allows res == poly.

Cite this page

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