gr_mat_struct, gr_mat_t
Synopsis
#include <flint/gr_mat.h>gr_mat_structgr_mat_tA 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#
- Using dfloat (
dfloat) - Implementing a ring (
gr) - Linear algebra over general and inexact rings
- Using mpn_mod (
mpn_mod) - Getting started with nfloat (
nfloat)
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).
@misc{flint-doc-gr-mat-gr-mat-struct,
author = {{The FLINT team}},
title = {{gr\_mat\_struct, gr\_mat\_t (gr\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mat/gr_mat_struct.html},
note = {Generated 2026-10-20}
}