FLINT3.7.0-dev

mpoly_pack_monomials_tight, mpoly_unpack_monomials_tight

Synopsis#include <flint/mpoly.h>
void mpoly_pack_monomials_tight(ulong * exp1, const ulong * exp2, slong len, const slong * mults, slong num, slong bits)source
void mpoly_unpack_monomials_tight(ulong * e1, ulong * e2, slong len, slong * mults, slong num, slong bits)source

Convert len one-word monomials between the usual packing with bits bits per field and the tight packing with the bases mults (the first entry corresponding to the least significant field). Only the least significant num fields are converted; each must be less than its base.

Cite this page

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