FLINT3.7.0-dev

_gr_mat_check_resize

Synopsis#include <flint/gr_mat.h>
int _gr_mat_check_resize(gr_mat_t mat, slong r, slong c, gr_ctx_t ctx)source

Helper for the contexts of matrix rings and spaces (here ctx is such a context, not the coefficient ring): resizes mat to r \times c if the context allows matrices of all sizes, and otherwise returns GR_DOMAIN unless r \times c is the shape of the context.

Cite this page

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