FLINT3.7.0-dev

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)source

Searches 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).