FLINT3.7.0-dev

gr_mat_sqr

Synopsis#include <flint/gr_mat.h>
int gr_mat_sqr(gr_mat_t res, const gr_mat_t mat, gr_ctx_t ctx)source

Sets res to A^2 (currently gr_mat_mul of A by itself).

Cite this page

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