FLINT3.7.0-dev

fmpz_mat_is_zero, fmpz_mat_is_one

Synopsis#include <flint/fmpz_mat.h>
int fmpz_mat_is_zero(const fmpz_mat_t mat)source
int fmpz_mat_is_one(const fmpz_mat_t mat)source

Returns 1 if mat is zero, respectively if it has ones on the main diagonal and zeros elsewhere (it need not be square), and 0 otherwise. Empty matrices are both zero and one.

Cite this page

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