NLA-lib Explorer

NLAlib.frobNorm_sq_eq_sum_range_singularValues_sq

Library ยท theorem

The squared Frobenius norm is the sum of the squared singular values up to any index that reaches the rank: \|\mathbf{A}\|_{\mathsf{F}}^2 = \sum_{k < N} \sigma_k(\mathbf{A})^2 for \operatorname{rank} \mathbf{A} \le N.

NLAlib.frobNorm_sq_eq_sum_range_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 ๐•œ) {N : โ„•}
  (hN : A.rank โ‰ค N) : frobNorm A ^ 2 = โˆ‘ k โˆˆ Finset.range N, singularValues A k ^ 2

Full source on GitHub

Import NLAlib.Matrix.Spectral.SingularValues.