FLINT3.7.0-dev

gr_mat_concat_horizontal, gr_mat_concat_vertical

Synopsis#include <flint/gr_mat.h>
int gr_mat_concat_horizontal(gr_mat_t res, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx)source
int gr_mat_concat_vertical(gr_mat_t res, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx)source

Set res to (A \mid B), respectively to A stacked above B. Return GR_DOMAIN if the numbers of rows (columns) of the inputs, or the shape of res, do not match.

Cite this page

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