FLINT3.7.0-dev

gr_mat_zero, gr_mat_one

Synopsis#include <flint/gr_mat.h>
int gr_mat_zero(gr_mat_t res, gr_ctx_t ctx)source
int gr_mat_one(gr_mat_t res, gr_ctx_t ctx)source

Set res to the zero matrix, respectively to the matrix with ones on the main diagonal and zeros elsewhere (the identity if square).

Cite this page

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