mpoly_monomial_cmp, mpoly_monomial_lt, mpoly_monomial_gt
Synopsis
#include <flint/mpoly.h>int mpoly_monomial_cmp(const ulong * exp2, const ulong * exp3, slong N, const ulong * cmpmask)sourceCompare two packed monomials in the monomial ordering given by the mask from mpoly_get_cmpmask. mpoly_monomial_cmp returns 1, 0 or -1 as exp2 is greater than, equal to or less than exp3; mpoly_monomial_lt and mpoly_monomial_gt return whether their first argument is less, respectively greater, than the second.
Cite this page
The FLINT team, “mpoly_monomial_cmp, mpoly_monomial_lt, mpoly_monomial_gt (mpoly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpoly/mpoly_monomial_cmp.html (generated 2026-10-20).
@misc{flint-doc-mpoly-mpoly-monomial-cmp,
author = {{The FLINT team}},
title = {{mpoly\_monomial\_cmp, mpoly\_monomial\_lt, mpoly\_monomial\_gt (mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpoly/mpoly_monomial_cmp.html},
note = {Generated 2026-10-20}
}