FLINT3.7.0-dev

nmod_mpoly_push_term_ui_ui, nmod_mpoly_push_term_ui_fmpz, nmod_mpoly_push_term_ui_ffmpz

Synopsis#include <flint/nmod_mpoly.h>
void nmod_mpoly_push_term_ui_ui(nmod_mpoly_t A, ulong c, const ulong * exp, const nmod_mpoly_ctx_t ctx)source
void nmod_mpoly_push_term_ui_fmpz(nmod_mpoly_t A, ulong c, fmpz * const * exp, const nmod_mpoly_ctx_t ctx)source
void nmod_mpoly_push_term_ui_ffmpz(nmod_mpoly_t A, ulong c, const fmpz * exp, const nmod_mpoly_ctx_t ctx)source

Append a term with coefficient c \bmod n and exponent vector exp to A, in constant amortised time. The _ffmpz version takes the exponents as an array of fmpz, the _fmpz version as an array of pointers to fmpz. After all terms are pushed, call nmod_mpoly_sort_terms and nmod_mpoly_combine_like_terms unless they were pushed in decreasing order with distinct monomials and nonzero coefficients.

Guides#

Cite this page

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