FLINT3.7.0-dev

gr_mat_window_init, gr_mat_window_clear

Synopsis#include <flint/gr_mat.h>
void gr_mat_window_init(gr_mat_t window, const gr_mat_t mat, slong r1, slong c1, slong r2, slong c2, gr_ctx_t ctx)source
void gr_mat_window_clear(gr_mat_t window, gr_ctx_t ctx)source

gr_mat_window_init makes window the submatrix of mat formed by rows r_1 \le i < r_2 and columns c_1 \le j < c_2, sharing the entries of mat (writing to the window modifies mat). The indices must be within bounds. gr_mat_window_clear releases a window without touching the entries.

Cite this page

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