NLA-lib Explorer

NLAlib.isBestRankApprox_truncatedSVD

Library · theorem

Eckart–Young: the truncated SVD \llbracket \mathbf{C} \rrbracket_k is a best approximation of \mathbf{C} of rank at most k. [GolubVanLoan2013, Theorem 2.4.8]; [HornJohnson2013, §7.4.9].

NLAlib.isBestRankApprox_truncatedSVD.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} [Fintype m] [Fintype n] (C : Matrix m n 𝕜) (k : ℕ) :
  IsBestRankApprox C k (truncatedSVD C k)

Full source on GitHub

Import NLAlib.Matrix.Spectral.BestRankApprox.