FLINT3.7.0-dev

fmpz_mod_poly_set_nmod_poly, fmpz_mod_poly_get_nmod_poly

Synopsis#include <flint/fmpz_mod_poly.h>
void fmpz_mod_poly_set_nmod_poly(fmpz_mod_poly_t f, const nmod_poly_t g)source
void fmpz_mod_poly_get_nmod_poly(nmod_poly_t f, const fmpz_mod_poly_t g)source

Copy the coefficients between an fmpz_mod_poly_t and an nmod_poly_t, assuming that both have the same modulus, which is not checked (no context is passed). For fmpz_mod_poly_get_nmod_poly, the modulus of f must already be set.

Cite this page

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