FLINT3.7.0-dev

nmod_mpoly_ctx_set_modulus

Synopsis#include <flint/nmod_mpoly.h>
void nmod_mpoly_ctx_set_modulus(nmod_mpoly_ctx_t ctx, ulong modulus)source

Replaces the modulus of ctx by modulus, keeping the variables and the ordering. Polynomials of the context must be reduced modulo the new modulus before they are used with it.

Cite this page

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