FLINT3.7.0-dev

fq_nmod_mat_is_zero, fq_nmod_mat_is_one

Synopsis#include <flint/fq_nmod_mat.h>
int fq_nmod_mat_is_zero(const fq_nmod_mat_t mat, const fq_nmod_ctx_t ctx)
int fq_nmod_mat_is_one(const fq_nmod_mat_t mat, const fq_nmod_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.

Generated from the same template as fq_mat_is_zero, whose documentation has the details.

Cite this page

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