fmpz_mat_print, fmpz_mat_fprint
Synopsis
#include <flint/fmpz_mat.h>int fmpz_mat_print(const fmpz_mat_t mat)sourceint fmpz_mat_fprint(FILE * file, const fmpz_mat_t mat)sourcePrints 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).
@misc{flint-doc-fmpz-mat-fmpz-mat-print,
author = {{The FLINT team}},
title = {{fmpz\_mat\_print, fmpz\_mat\_fprint (fmpz\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mat/fmpz_mat_print.html},
note = {Generated 2026-10-20}
}