FLINT3.7.0-dev

nmod_poly_set_mod

Synopsis#include <flint/nmod_poly.h>
void nmod_poly_set_mod(nmod_poly_t poly, const nmod_t mod)source

Replaces the modulus of poly by mod without changing the coefficients, which must be reduced modulo the new modulus.

Cite this page

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