FLINT3.7.0-dev

gr_ctx_ngens, gr_ctx_gen_name

Synopsis#include <flint/gr.h>
int gr_ctx_ngens(slong * ngens, gr_ctx_t ctx)source
int gr_ctx_gen_name(char ** name, slong i, gr_ctx_t ctx)source

Set *ngens to the number of generators (0 by default), respectively set *name to a newly allocated copy of the name of generator i, which must be freed with flint_free.

Cite this page

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