NLA-lib Explorer

NLAlib.specNorm_sub_truncatedSVD

Library · theorem

The spectral error of the truncated SVD is the k-th singular value: \|\mathbf{A} - \llbracket \mathbf{A} \rrbracket_k\|_2 = \sigma_k(\mathbf{A}). [GolubVanLoan2013, Theorem 2.4.8].

NLAlib.specNorm_sub_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 : ℕ) :
  specNorm (A - truncatedSVD A k) = singularValues A k

Full source on GitHub

Import NLAlib.Matrix.Spectral.LowRank.