gr_gens, gr_gens_recursive
Synopsis
#include <flint/gr.h>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).
@misc{flint-doc-gr-gr-gens,
author = {{The FLINT team}},
title = {{gr\_gens, gr\_gens\_recursive (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/gr_gens.html},
note = {Generated 2026-10-20}
}