FLINT3.7.0-dev

fmpz_mat_print_pretty, fmpz_mat_fprint_pretty

Synopsis#include <flint/fmpz_mat.h>
int fmpz_mat_print_pretty(const fmpz_mat_t mat)source
int fmpz_mat_fprint_pretty(FILE * file, const fmpz_mat_t mat)source

Prints mat to stdout, respectively file, with each row in square brackets followed by a newline, and the whole matrix enclosed in square brackets: the matrix above is printed as [[1 2], [3 4], ] on three lines, with no final newline. Returns a positive value on success and a nonpositive value if a write failed.

Guides#

Cite this page

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