FLINT3.7.0-dev

bool_mat_is_diagonal, bool_mat_is_lower_triangular

Synopsis#include <flint/bool_mat.h>
int bool_mat_is_diagonal(const bool_mat_t A)source
int bool_mat_is_lower_triangular(const bool_mat_t A)source

Return 1 if A_{ij} = 0 for all i \ne j, respectively for all i < j, and 0 otherwise. The matrix need not be square.

Cite this page

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