FLINT3.7.0-dev

_mpoly_gen_shift_right, _mpoly_gen_shift_right_fmpz, _mpoly_gen_shift_left

Synopsis#include <flint/mpoly.h>
void _mpoly_gen_shift_right(ulong * Aexp, flint_bitcnt_t Abits, slong Alength, slong var, ulong amount, const mpoly_ctx_t mctx)source
void _mpoly_gen_shift_right_fmpz(ulong * Aexp, flint_bitcnt_t Abits, slong Alength, slong var, const fmpz_t amount, const mpoly_ctx_t mctx)source
void _mpoly_gen_shift_left(ulong * Aexp, flint_bitcnt_t Abits, slong Alength, slong var, ulong amount, const mpoly_ctx_t mctx)source

Divide (shift right) or multiply (shift left) every monomial in place by x_{\mathit{var}}^{\mathit{amount}}, without changing the packing width. The division must be exact and the product must fit; _mpoly_gen_shift_right and _mpoly_gen_shift_left require single precision packing.

Cite this page

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