gr_mpoly_ctx_struct, gr_mpoly_ctx_t
#include <flint/gr_mpoly.h>gr_mpoly_ctx_structgr_mpoly_ctx_tThe 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#
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).
@misc{flint-doc-gr-mpoly-gr-mpoly-ctx-struct,
author = {{The FLINT team}},
title = {{gr\_mpoly\_ctx\_struct, gr\_mpoly\_ctx\_t (gr\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mpoly/gr_mpoly_ctx_struct.html},
note = {Generated 2026-10-20}
}