FLINT3.7.0-dev

mpoly_monomial_index_ui, mpoly_monomial_index_pfmpz, mpoly_monomial_index_monomial

Synopsis#include <flint/mpoly.h>
slong mpoly_monomial_index_ui(const ulong * Aexp, flint_bitcnt_t Abits, slong Alength, const ulong * exp, const mpoly_ctx_t mctx)source
slong mpoly_monomial_index_pfmpz(const ulong * Aexp, flint_bitcnt_t Abits, slong Alength, fmpz * const * exp, const mpoly_ctx_t mctx)source
slong mpoly_monomial_index_monomial(const ulong * Aexp, flint_bitcnt_t Abits, slong Alength, const ulong * Mexp, flint_bitcnt_t Mbits, const mpoly_ctx_t mctx)source

Return the index of the monomial with user exponent vector exp (respectively the packed monomial Mexp packed with Mbits bits) in the sorted array (Aexp, Alength) packed with Abits bits, or -1 if it does not occur.

Cite this page

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