FLINT3.7.0-dev

fmpq_mat_is_zero, fmpq_mat_is_one

Synopsis#include <flint/fmpq_mat.h>
int fmpq_mat_is_zero(const fmpq_mat_t mat)source
int fmpq_mat_is_one(const fmpq_mat_t mat)source

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

Cite this page

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