FLINT3.7.0-dev

fq_ctx_init_modulus

Synopsis#include <flint/fq.h>
void fq_ctx_init_modulus(fq_ctx_t ctx, const fmpz_mod_poly_t modulus, const fmpz_mod_ctx_t ctxp, const char * var)source

Initialises ctx as a context for \mathbb{F}_p[x]/(f), where f is modulus, an irreducible polynomial of degree d \ge 1 over \mathbb{F}_p, and p is the modulus of ctxp. f need not be monic. The polynomial and ctxp are copied. Irreducibility is not checked.

Cite this page

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