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)sourceWrite 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#
- Getting started with decimal arithmetic (
decimal) - Using dfloat (
dfloat) - Getting started with finite fields (
fq_default) - Getting started with generic rings
- Getting started with gr_poly (
gr_poly) - Getting started with nfloat (
nfloat) - Getting started with padic_radix (
padic_radix)
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).
@misc{flint-doc-gr-gr-ctx-write,
author = {{The FLINT team}},
title = {{gr\_ctx\_write, gr\_ctx\_print, gr\_ctx\_println, gr\_ctx\_get\_str (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/gr_ctx_write.html},
note = {Generated 2026-10-20}
}