gr_mat_eigenvalues, gr_mat_eigenvalues_other
Synopsis
#include <flint/gr_mat.h>int gr_mat_eigenvalues(gr_vec_t lambda, fmpz_vec_t mult, const gr_mat_t mat, int flags, gr_ctx_t ctx)sourceint gr_mat_eigenvalues_other(gr_vec_t lambda, fmpz_vec_t mult, const gr_mat_t mat, gr_ctx_t mat_ctx, int flags, gr_ctx_t ctx)sourceFind the eigenvalues of a square matrix in the ring ctx, without repetition, with their multiplicities in mult, as the roots of the characteristic polynomial (gr_poly_roots, respectively gr_poly_roots_other for a matrix over another ring mat_ctx). As for gr_poly_roots, the multiplicities may add up to less than n if the ring is not algebraically closed. Over exact real and complex numbers, see Linear algebra over exact numbers.
Guides#
- Using qqbar (
qqbar)
Cite this page
The FLINT team, “gr_mat_eigenvalues, gr_mat_eigenvalues_other (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_eigenvalues.html (generated 2026-10-20).
@misc{flint-doc-gr-mat-gr-mat-eigenvalues,
author = {{The FLINT team}},
title = {{gr\_mat\_eigenvalues, gr\_mat\_eigenvalues\_other (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_eigenvalues.html},
note = {Generated 2026-10-20}
}