FLINT3.7.0-dev

gr_ctx_write, gr_ctx_print, gr_ctx_println, gr_ctx_get_str

Synopsis#include <flint/gr.h>
int gr_ctx_write(gr_stream_t out, gr_ctx_t ctx)source
int gr_ctx_print(gr_ctx_t ctx)source
int gr_ctx_println(gr_ctx_t ctx)source
int gr_ctx_get_str(char ** s, gr_ctx_t ctx)source

Write a description of the ring, such as Integers mod 7 (_gr_nmod), to a stream, print it to standard output (with a newline for gr_ctx_println), or set *s to a newly allocated string that must be freed with flint_free. The format specifier %{gr_ctx} of flint_printf does the same (Formatted output).

Guides#

Cite this page

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