FLINT3.7.0-dev

gr_mat_is_empty, gr_mat_is_square

Synopsis#include <flint/gr_mat.h>
truth_t gr_mat_is_empty(const gr_mat_t mat, gr_ctx_t ctx)source
truth_t gr_mat_is_square(const gr_mat_t mat, gr_ctx_t ctx)source

Return whether mat has no entries (zero rows or zero columns), respectively as many rows as columns. These predicates depend only on the shape and always return T_TRUE or T_FALSE.

Cite this page

The FLINT team, “gr_mat_is_empty, gr_mat_is_square (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_empty.html (generated 2026-10-20).