FLINT3.7.0-dev

gr_ctx_init_fmpz_mod_mpoly_q

Synopsis#include <flint/gr.h>
void gr_ctx_init_fmpz_mod_mpoly_q(gr_ctx_t ctx, slong nvars, const ordering_t ord, const fmpz_t mod)source

Initialises ctx to the field \mathbb{F}_p(x_1, \ldots, x_n) of rational functions over \mathbb{F}_p with p = mod, with elements of type fmpz_mod_mpoly_q_struct. The modulus must be prime; this is not checked and a composite modulus gives undefined behaviour. Declared only if fmpz_mod_mpoly_q.h is included before gr.h.

Cite this page

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