FLINT3.7.0-dev

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)source
int 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)source

Find 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#

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).