FLINT3.7.0-dev

fq_default_get_fmpz_poly, fq_default_set_fmpz_poly

Synopsis#include <flint/fq_default.h>
void fq_default_get_fmpz_poly(fmpz_poly_t a, const fq_default_t b, const fq_default_ctx_t ctx)source
void fq_default_set_fmpz_poly(fq_default_t a, const fmpz_poly_t b, const fq_default_ctx_t ctx)source

Convert between an element and an integer polynomial. fq_default_get_fmpz_poly sets a to the representative of b of degree less than d, with coefficients in [0, p). fq_default_set_fmpz_poly reduces the coefficients of b modulo p and the polynomial modulo the defining polynomial.

Guides#

Cite this page

The FLINT team, “fq_default_get_fmpz_poly, fq_default_set_fmpz_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_fmpz_poly.html (generated 2026-10-20).