FLINT3.7.0-dev

_fq_poly_shift_right, fq_poly_shift_right

Synopsis#include <flint/fq_poly.h>
void _fq_poly_shift_right(fq_struct * rop, const fq_struct * op, slong len, slong n, const fq_ctx_t ctx)
void fq_poly_shift_right(fq_poly_t rop, const fq_poly_t op, slong n, const fq_ctx_t ctx)

Set rop to \lfloor \mathit{op} / x^n \rfloor, dropping the n lowest coefficients; the result is zero if n is at least the length. The underscore version requires len > n, writes len - n coefficients and allows aliasing (the top n coefficients of op are then permuted, not zeroed).

Cite this page

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