FLINT3.7.0-dev

mpoly_get_cmpmask

Synopsis#include <flint/mpoly.h>
void mpoly_get_cmpmask(ulong * cmpmask, slong N, flint_bitcnt_t bits, const mpoly_ctx_t mctx)source

Sets (cmpmask, N) to the comparison mask for monomials packed with bits bits: zero for ORD_LEX and ORD_DEGLEX, and for ORD_DEGREVLEX all ones in every field except the total degree field. Two packed monomials compare in the monomial ordering as the multiword integers obtained by an exclusive or with this mask. Every function that compares monomials takes such a mask.

Cite this page

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