FLINT3.7.0-dev

gr_mat_sqrt, gr_mat_rsqrt

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

Set res to a square root A^{1/2} or reciprocal square root A^{-1/2}, computed from the Jordan decomposition (the only algorithm implemented). This often fails with GR_UNABLE when the ring is not an algebraically closed field, even if a square root exists.

Cite this page

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