NLA-lib Explorer

NLAlib.eigenvalue

Library · def

The k-th largest eigenvalue \lambda_k(\mathbf{A}) of a Hermitian matrix, counted with multiplicity, indexed from 0. Non-increasing in k for k < \lvert n \rvert. The value is 0 for k \ge \lvert n \rvert, and 0 for every k when \mathbf{A} is not Hermitian. Mathlib's Matrix.IsHermitian.eigenvalues₀ is the same sequence indexed by Fin (Fintype.card n); Mathlib's Matrix.IsHermitian.eigenvalues is unsorted.

The zeros are junk values: ∃ k, -3 < eigenvalue A k is true of every matrix. Bound the index (k < Fintype.card n) when quantifying over it; see the module docstring.

NLAlib.eigenvalue.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] (A : Matrix n n 𝕜)
  (k : ℕ) : ℝ

Full source on GitHub

Import NLAlib.Matrix.Spectral.Eigenvalues.