FLINT3.7.0-dev

_nmod_vec_print_pretty, _nmod_vec_fprint_pretty

Synopsis#include <flint/nmod_vec.h>
void _nmod_vec_print_pretty(nn_srcptr vec, slong len, nmod_t mod)source
int _nmod_vec_fprint_pretty(FILE * file, nn_srcptr vec, slong len, nmod_t mod)source

Prints a header line, then the entries in brackets, each padded to the number of decimal digits of n. _nmod_vec_fprint_pretty returns a positive value on success and a nonpositive value on a write error. Like all functions with a FILE argument, it is declared only if <stdio.h> is included before the FLINT headers.

For example, _nmod_vec_print_pretty prints a vector of length 5 modulo 197 as

<length-5 integer vector mod 197>
[ 33 181 107   6   0]

For a vector of length 0 only the header line is printed.

Cite this page

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