FLINT3.7.0-dev

gr_mpoly_ctx_struct, gr_mpoly_ctx_t

Synopsis#include <flint/gr_mpoly.h>
gr_mpoly_ctx_struct
gr_mpoly_ctx_t

The context of a polynomial ring R[X_1, \ldots, X_n]. It is a gr_ctx_t, so the generic gr functions can be used with it: gr_add on gr_mpoly_t elements of this context is gr_mpoly_add. The context data (of type _gr_mpoly_ctx_struct) consists of the coefficient context cctx, which is not owned by the polynomial context and must stay alive as long as it is used; an mpoly_ctx_t mctx with the number of variables and the monomial ordering, which is owned; and an optional array vars of names of the generators, set with gr_mpoly_ctx_set_gen_names (by default NULL, meaning default names). The names are used for printing, for parsing with gr_set_str and for conversions between rings.

Guides#

Cite this page

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