FLINT3.7.0-dev

bool_mat_any, bool_mat_all

Synopsis#include <flint/bool_mat.h>
int bool_mat_any(const bool_mat_t mat)source
int bool_mat_all(const bool_mat_t mat)source

Return 1 if some entry, respectively every entry, of mat is 1, and 0 otherwise. For an empty matrix bool_mat_any returns 0 and bool_mat_all returns 1.

Cite this page

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