fmpz_mat_inv
Synopsis
#include <flint/fmpz_mat.h>int fmpz_mat_inv(fmpz_mat_t B, fmpz_t den, const fmpz_mat_t A)sourceSets (, den) to the inverse of the square matrix , so that , and returns 1 if is nonsingular; returns 0 if is singular. may be .
Dimensions up to 2 use explicit formulas with ; larger matrices are solved against the identity matrix with fmpz_mat_solve, so that den is for dimensions up to 15 and the minimal positive denominator (the largest invariant factor of ) above.
Guides#
Cite this page
The FLINT team, “fmpz_mat_inv (fmpz_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mat/fmpz_mat_inv.html (generated 2026-11-02).
@misc{flint-doc-fmpz-mat-fmpz-mat-inv,
author = {{The FLINT team}},
title = {{fmpz\_mat\_inv (fmpz\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mat/fmpz_mat_inv.html},
note = {Generated 2026-11-02}
}