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)sourceulong nmod_mpoly_get_coeff_ui_fmpz(const nmod_mpoly_t A, fmpz * const * exp, const nmod_mpoly_ctx_t ctx)sourcevoid nmod_mpoly_set_coeff_ui_ui(nmod_mpoly_t A, ulong c, const ulong * exp, const nmod_mpoly_ctx_t ctx)sourcevoid nmod_mpoly_set_coeff_ui_fmpz(nmod_mpoly_t A, ulong c, fmpz * const * exp, const nmod_mpoly_ctx_t ctx)sourceGet 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).
@misc{flint-doc-nmod-mpoly-nmod-mpoly-get-coeff-ui-ui,
author = {{The FLINT team}},
title = {{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)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_mpoly/nmod_mpoly_get_coeff_ui_ui.html},
note = {Generated 2026-10-20}
}