FLINT3.7.0-dev

gr_mat_is_zero, gr_mat_is_one, gr_mat_is_neg_one, gr_mat_is_scalar

Synopsis#include <flint/gr_mat.h>
truth_t gr_mat_is_zero(const gr_mat_t mat, gr_ctx_t ctx)source
truth_t gr_mat_is_one(const gr_mat_t mat, gr_ctx_t ctx)source
truth_t gr_mat_is_neg_one(const gr_mat_t mat, gr_ctx_t ctx)source
truth_t gr_mat_is_scalar(const gr_mat_t mat, gr_ctx_t ctx)source

Return whether mat is zero, has 1 or -1 on the main diagonal and zeros elsewhere, or is a scalar matrix (a diagonal matrix with equal diagonal entries).

Cite this page

The FLINT team, “gr_mat_is_zero, gr_mat_is_one, gr_mat_is_neg_one, gr_mat_is_scalar (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_is_zero.html (generated 2026-10-20).