_nmod_poly_shift_right, nmod_poly_shift_right
Synopsis
#include <flint/nmod_poly.h>void nmod_poly_shift_right(nmod_poly_t res, const nmod_poly_t poly, slong k)sourceSet 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).
@misc{flint-doc-nmod-poly-nmod-poly-shift-right,
author = {{The FLINT team}},
title = {{\_nmod\_poly\_shift\_right, nmod\_poly\_shift\_right (nmod\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_poly/_nmod_poly_shift_right.html},
note = {Generated 2026-10-20}
}