NLA-lib Explorer

NLAlib.IsSVD.frobNorm_sq_eq

Library ยท theorem

The squared Frobenius norm is the sum of the squares of the entries of \boldsymbol{\sigma}: \|\mathbf{A}\|_{\mathsf{F}}^2 = \sum_i \boldsymbol{\sigma}_i^2.

NLAlib.IsSVD.frobNorm_sq_eq.{u_1, u_3, u_4, u_5} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_3}
  {n : Type u_4} {r : Type u_5} [Fintype m] [Fintype n] [Fintype r] [DecidableEq r]
  {A : Matrix m n ๐•œ} {U : Matrix m r ๐•œ} {ฯƒ : r โ†’ โ„} {V : Matrix n r ๐•œ} (h : IsSVD A U ฯƒ V) :
  frobNorm A ^ 2 = โˆ‘ i, ฯƒ i ^ 2

Full source on GitHub

Import NLAlib.Matrix.Spectral.SVD.