FLINT3.7.0-dev

_gr_vec_write, gr_vec_write, _gr_vec_print, gr_vec_print

Synopsis#include <flint/gr_vec.h>
int _gr_vec_write(gr_stream_t out, gr_srcptr vec, slong len, gr_ctx_t ctx)source
int gr_vec_write(gr_stream_t out, const gr_vec_t vec, gr_ctx_t ctx)source
int _gr_vec_print(gr_srcptr vec, slong len, gr_ctx_t ctx)source
int gr_vec_print(const gr_vec_t vec, gr_ctx_t ctx)source

Write the vector to a stream, or print it to standard output, in the form [a, b, c] with each entry written by gr_write. The format specifier %{gr*} of flint_printf does the same for an array (Formatted output).

Guides#

Cite this page

The FLINT team, “_gr_vec_write, gr_vec_write, _gr_vec_print, gr_vec_print (gr_vec.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_vec/_gr_vec_write.html (generated 2026-10-20).