FLINT3.7.0-dev

gr_mat_struct, gr_mat_t

Synopsis#include <flint/gr_mat.h>
gr_mat_struct
gr_mat_t

A matrix over the ring given by a gr_ctx_t. The structure has the fields entries (a pointer to the first entry), r and c (the numbers of rows and columns) and stride (the distance in elements between the starts of consecutive rows). The entry in row i and column j is at index i \cdot \mathit{stride} + j of entries. A matrix created by gr_mat_init has \mathit{stride} = c; a window shares the entries and the stride of its parent. A gr_mat_t is an array of one gr_mat_struct, so it is passed by reference.

Guides#

Cite this page

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