FLINT3.7.0-dev

gr_gens, gr_gens_recursive

Synopsis#include <flint/gr.h>
int gr_gens(gr_vec_t res, gr_ctx_t ctx)source
int gr_gens_recursive(gr_vec_t res, gr_ctx_t ctx)source

Set res to the vector of generators of the ring (empty by default), for example x_1, \ldots, x_n in a multivariate polynomial ring. The recursive version also includes the generators of the base rings, recursively, embedded in ctx: in (\mathbb{Z}[x])[y] it gives x, y. gr_set_str recognises the names of all these generators.

Cite this page

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