FLINT3.7.0-dev

gr_mat_neg, gr_mat_add, gr_mat_sub

Synopsis#include <flint/gr_mat.h>
int gr_mat_neg(gr_mat_t res, const gr_mat_t mat, gr_ctx_t ctx)source
int gr_mat_add(gr_mat_t res, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx)source
int gr_mat_sub(gr_mat_t res, const gr_mat_t mat1, const gr_mat_t mat2, gr_ctx_t ctx)source

Set res to -A, A + B or A - B.

Cite this page

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