FLINT3.7.0-dev

gr_mat_is_diagonal, gr_mat_is_upper_triangular, gr_mat_is_lower_triangular, gr_mat_is_hessenberg

Synopsis#include <flint/gr_mat.h>
truth_t gr_mat_is_diagonal(const gr_mat_t mat, gr_ctx_t ctx)source
truth_t gr_mat_is_upper_triangular(const gr_mat_t mat, gr_ctx_t ctx)source
truth_t gr_mat_is_lower_triangular(const gr_mat_t mat, gr_ctx_t ctx)source
truth_t gr_mat_is_hessenberg(const gr_mat_t mat, gr_ctx_t ctx)source

Return whether all entries off the main diagonal, below it, above it, or below the first subdiagonal (upper Hessenberg form) are zero. The matrix need not be square.

Cite this page

The FLINT team, “gr_mat_is_diagonal, gr_mat_is_upper_triangular, gr_mat_is_lower_triangular, gr_mat_is_hessenberg (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_diagonal.html (generated 2026-10-20).