FLINT3.7.0-dev

gr_ctx_init_fmpz_mpoly, gr_ctx_init_fmpq_mpoly, gr_ctx_init_gr_mpoly

Synopsis#include <flint/gr.h>
void gr_ctx_init_fmpz_mpoly(gr_ctx_t ctx, slong nvars, const ordering_t ord)source
void gr_ctx_init_fmpq_mpoly(gr_ctx_t ctx, slong nvars, const ordering_t ord)source
void gr_ctx_init_gr_mpoly(gr_ctx_t ctx, gr_ctx_t base_ring, slong nvars, const ordering_t ord)source

Initialise ctx to the ring of sparse multivariate polynomials in nvars variables with the monomial ordering ord, over \mathbb{Z} (fmpz_mpoly_struct elements), over \mathbb{Q} (fmpq_mpoly_struct), or over base_ring (gr_mpoly_struct, see gr_mpoly). The variables are named x1, x2, ... by default. Declared only if mpoly.h is included before gr.h.

Cite this page

The FLINT team, “gr_ctx_init_fmpz_mpoly, gr_ctx_init_fmpq_mpoly, gr_ctx_init_gr_mpoly (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_mpoly.html (generated 2026-10-20).