mpoly_monomial_exists
Synopsis
#include <flint/mpoly.h>int mpoly_monomial_exists(slong * index, const ulong * poly_exps, const ulong * exp, slong len, slong N, const ulong * cmpmask)sourceSearches the sorted array (poly_exps, len) for the monomial exp by binary search. Returns 1 and sets index to its position if it is present; otherwise returns 0 and sets index to the position where it would have to be inserted to keep the array sorted, in [0, \mathit{len}].
Cite this page
The FLINT team, “mpoly_monomial_exists (mpoly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpoly/mpoly_monomial_exists.html (generated 2026-10-20).
@misc{flint-doc-mpoly-mpoly-monomial-exists,
author = {{The FLINT team}},
title = {{mpoly\_monomial\_exists (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_exists.html},
note = {Generated 2026-10-20}
}