FLINT3.7.0-dev

fmpq_mat_det

Synopsis#include <flint/fmpq_mat.h>
void fmpq_mat_det(fmpq_t det, const fmpq_mat_t mat)source

Sets det to the determinant of the square matrix mat. For dimensions up to 2 an explicit formula is used; otherwise the denominators of the rows are cleared, giving \operatorname{diag}(d_i) \cdot \mathit{mat}, and the determinant of that integer matrix (fmpz_mat_det) is divided by \prod_i d_i.

Cite this page

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