FLINT3.7.0-dev

nmod_mpoly_get_coeff_ui_ui, nmod_mpoly_get_coeff_ui_fmpz, nmod_mpoly_set_coeff_ui_ui, nmod_mpoly_set_coeff_ui_fmpz

Synopsis#include <flint/nmod_mpoly.h>
ulong nmod_mpoly_get_coeff_ui_ui(const nmod_mpoly_t A, const ulong * exp, const nmod_mpoly_ctx_t ctx)source
ulong nmod_mpoly_get_coeff_ui_fmpz(const nmod_mpoly_t A, fmpz * const * exp, const nmod_mpoly_ctx_t ctx)source
void nmod_mpoly_set_coeff_ui_ui(nmod_mpoly_t A, ulong c, const ulong * exp, const nmod_mpoly_ctx_t ctx)source
void nmod_mpoly_set_coeff_ui_fmpz(nmod_mpoly_t A, ulong c, fmpz * const * exp, const nmod_mpoly_ctx_t ctx)source

Get or set the coefficient of the monomial with exponent vector exp (one entry per variable). Setting to zero removes the term, setting a new monomial inserts it in its place. Each call costs time linear in the length of A; use nmod_mpoly_push_term_ui_ui to build polynomials term by term.

Guides#

Cite this page

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