FLINT3.7.0-dev

fmpz_mat_print, fmpz_mat_fprint

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

Prints mat to stdout, respectively file, in the format read by fmpz_mat_fread: the number of rows and of columns, followed by two spaces, followed by the entries in row-major order separated by single spaces. For example, the 2 \times 2 matrix with rows (1, 2) and (3, 4) is printed as 2 2 1 2 3 4. Returns a positive value on success and a nonpositive value if a write failed.

Cite this page

The FLINT team, “fmpz_mat_print, fmpz_mat_fprint (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.html (generated 2026-10-20).