gr_mat_sqrt, gr_mat_rsqrt
Synopsis
#include <flint/gr_mat.h>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).
@misc{flint-doc-gr-mat-gr-mat-sqrt,
author = {{The FLINT team}},
title = {{gr\_mat\_sqrt, gr\_mat\_rsqrt (gr\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_mat/gr_mat_sqrt.html},
note = {Generated 2026-10-20}
}