NLA-lib Explorer

NLAlib.frobNorm_truncatedSVD_sq

Library ยท theorem

The truncated SVD keeps the leading singular values in the Frobenius norm: \|\llbracket \mathbf{A} \rrbracket_k\|_{\mathsf{F}}^2 = \sum_{i < k} \sigma_i(\mathbf{A})^2\,, for every choice of the truncation; indices at or above \min(\lvert m \rvert, \lvert n \rvert) contribute 0.

NLAlib.frobNorm_truncatedSVD_sq.{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 : โ„•) :
  frobNorm (truncatedSVD A k) ^ 2 = โˆ‘ i โˆˆ Finset.range k, singularValues A i ^ 2

Full source on GitHub

Import NLAlib.Matrix.Spectral.LowRank.