nmod_mpoly_ctx_set_modulus
Synopsis
#include <flint/nmod_mpoly.h>void nmod_mpoly_ctx_set_modulus(nmod_mpoly_ctx_t ctx, ulong modulus)sourceReplaces 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).
@misc{flint-doc-nmod-mpoly-nmod-mpoly-ctx-set-modulus,
author = {{The FLINT team}},
title = {{nmod\_mpoly\_ctx\_set\_modulus (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_ctx_set_modulus.html},
note = {Generated 2026-10-20}
}