fmpz_mod_ctx_set_modulus, fmpz_mod_ctx_set_modulus_ui
Synopsis
#include <flint/fmpz_mod.h>void fmpz_mod_ctx_set_modulus(fmpz_mod_ctx_t ctx, const fmpz_t n)sourcevoid fmpz_mod_ctx_set_modulus_ui(fmpz_mod_ctx_t ctx, ulong n)sourceChanges the modulus of the initialised context ctx to , which must be positive. Residues computed for the old modulus are not reduced.
Cite this page
The FLINT team, “fmpz_mod_ctx_set_modulus, fmpz_mod_ctx_set_modulus_ui (fmpz_mod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mod/fmpz_mod_ctx_set_modulus.html (generated 2026-11-02).
@misc{flint-doc-fmpz-mod-fmpz-mod-ctx-set-modulus,
author = {{The FLINT team}},
title = {{fmpz\_mod\_ctx\_set\_modulus, fmpz\_mod\_ctx\_set\_modulus\_ui (fmpz\_mod.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mod/fmpz_mod_ctx_set_modulus.html},
note = {Generated 2026-11-02}
}