FLINT3.7.0-dev

mpoly_repack_monomials

Synopsis#include <flint/mpoly.h>
int mpoly_repack_monomials(ulong * exps1, flint_bitcnt_t bits1, const ulong * exps2, flint_bitcnt_t bits2, slong len, const mpoly_ctx_t mctx)source

Converts len monomials packed with bits2 bits per field in exps2 into monomials packed with bits1 bits in exps1, which must have room for len*mpoly_words_per_exp(bits1, mctx) words. Returns 1 for success. Widening always succeeds; narrowing returns 0 as soon as a field does not fit in bits1 - 1 bits, leaving exps1 partially written.

Cite this page

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