NLA-lib Explorer

IsStarProjection.frobNorm_sub_mul_sq_eq_sub_frobInner

Library · theorem

The squared residual of an orthogonal projector, with no identity matrix: \|\mathbf{X} - \mathbf{P}\mathbf{X}\|_{\mathsf{F}}^2 = \|\mathbf{X}\|_{\mathsf{F}}^2 - \langle \mathbf{P}, \mathbf{X}\mathbf{X}^{\mathsf{H}} \rangle_{\mathsf{F}}\,.

IsStarProjection.frobNorm_sub_mul_sq_eq_sub_frobInner.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {m : Type u_3} {n : Type u_4} [Fintype m] [Fintype n] {P : Matrix m m 𝕜} (hP : IsStarProjection P)
  (X : Matrix m n 𝕜) : frobNorm (X - P * X) ^ 2 = frobNorm X ^ 2 - frobInner P (X * Xᴴ)

Full source on GitHub

Import NLAlib.Matrix.Norms.Projector.