gr_mat_inv
Synopsis
#include <flint/gr_mat.h>Sets res to the inverse of a square matrix in the ring, computed with gr_mat_nonsingular_solve and the identity matrix. Returns GR_DOMAIN if the matrix is shown to be not invertible over R (this is not reliable over rings with zero divisors) and GR_UNABLE if invertibility cannot be decided. For the inverse over the fraction field, use gr_mat_nonsingular_solve_den or gr_mat_adjugate.
Guides#
Cite this page
The FLINT team, “gr_mat_inv (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_inv.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-inv,
author = {{The FLINT team}},
title = {{gr\_mat\_inv (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_inv.html},
note = {Generated 2026-10-20}
}