FLINT3.7.0-dev

fq_mat_is_zero, fq_mat_is_one

Synopsis#include <flint/fq_mat.h>
int fq_mat_is_zero(const fq_mat_t mat, const fq_ctx_t ctx)
int fq_mat_is_one(const fq_mat_t mat, const fq_ctx_t ctx)

Return whether all entries are zero, respectively whether the diagonal entries are one and the others zero. An empty matrix is both zero and one.

Cite this page

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