NLA-lib Explorer

NLAlib.IsSVD.frobInner_eq

Library ยท theorem

The Frobenius inner product of two matrices with the same singular vectors is the inner product of their diagonal factors: if \mathbf{A} = \mathbf{U} \operatorname{diag}(\boldsymbol{\sigma}) \mathbf{V}^{\mathsf{H}} and \mathbf{B} = \mathbf{U} \operatorname{diag}(\boldsymbol{\tau}) \mathbf{V}^{\mathsf{H}} are SVDs, then \langle \mathbf{A}, \mathbf{B} \rangle_{\mathsf{F}} = \sum_i \boldsymbol{\sigma}_i \boldsymbol{\tau}_i.

NLAlib.IsSVD.frobInner_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 ๐•œ} {B : Matrix m n ๐•œ}
  {ฯ„ : r โ†’ โ„} (h : IsSVD A U ฯƒ V) (hB : IsSVD B U ฯ„ V) : frobInner A B = โˆ‘ i, ฯƒ i * ฯ„ i

Full source on GitHub

Import NLAlib.Matrix.Spectral.SVD.