FLINT3.7.0-dev

fq_default_get_nmod_poly, fq_default_set_nmod_poly

Synopsis#include <flint/fq_default.h>
void fq_default_get_nmod_poly(nmod_poly_t poly, const fq_default_t op, const fq_default_ctx_t ctx)source
void fq_default_set_nmod_poly(fq_default_t op, const nmod_poly_t poly, const fq_default_ctx_t ctx)source

Convert between op and its representative of degree less than d in \mathbb{F}_p[x]. fq_default_set_nmod_poly accepts a polynomial of any degree and reduces it modulo the defining polynomial. The modulus of poly must be p; it is not checked. Only for the types FQ_DEFAULT_FQ_ZECH, FQ_DEFAULT_FQ_NMOD and FQ_DEFAULT_NMOD; the other types throw FLINT_ERROR.

Guides#

Cite this page

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