NLA-lib Explorer

NLAlib.singularValues_sq

Library · theorem

Singular values are the square roots of the eigenvalues of the Gram matrix: \sigma_k(\mathbf{A})^2 = \lambda_k(\mathbf{A}^{\mathsf{H}}\mathbf{A}) for every index k, both sequences being zero-padded. [HornJohnson2013, §2.6].

NLAlib.singularValues_sq.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_3} {n : Type u_4}
  [Fintype m] [Fintype n] (A : Matrix m n 𝕜) (k : ℕ) :
  singularValues A k ^ 2 = eigenvalue (Aᴴ * A) k

Full source on GitHub

Import NLAlib.Matrix.Spectral.SingularValues.