FLINT3.7.0-dev

mpoly_pack_vec_ui, mpoly_pack_vec_fmpz

Synopsis#include <flint/mpoly.h>
void mpoly_pack_vec_ui(ulong * exp1, const ulong * exp2, flint_bitcnt_t bits, slong nfields, slong len)source
void mpoly_pack_vec_fmpz(ulong * exp1, const fmpz * exp2, flint_bitcnt_t bits, slong nfields, slong len)source

Pack len consecutive vectors of nfields fields from exp2 into exp1, with bits bits per field. In the single precision case the fields of one vector are written from the least significant bits of the first word up, starting a new word whenever the next field does not fit, and the unused high bits are zero. It is not checked that the fields fit.

Cite this page

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