NLA-lib Explorer

NLAlib.singularValues_truncatedSVD

Library · theorem

The singular values of the truncated SVD are the first k singular values of \mathbf{A}: \sigma_i(\llbracket \mathbf{A} \rrbracket_k) = \sigma_i(\mathbf{A}) for i < k and 0 for i \ge k.

NLAlib.singularValues_truncatedSVD.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} [Fintype m] [Fintype n] (A : Matrix m n 𝕜) (k i : ℕ) :
  singularValues (truncatedSVD A k) i = if i < k then singularValues A i else 0

Full source on GitHub

Import NLAlib.Matrix.Spectral.LowRank.