NLA-lib Explorer

NLAlib.frobNorm_eq_iff_of_add_mulVec_eq_zero

Library · theorem

For a prescribed unit direction, the unique correction of smallest Frobenius norm that annihilates its image is the negative outer product of that image and the direction.

NLAlib.frobNorm_eq_iff_of_add_mulVec_eq_zero.{u_1, u_2, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {m : Type u_2} [Fintype m] {ι : Type u_4} [Fintype ι] (C D : Matrix m ι 𝕜) {v : ι → 𝕜}
  (hv : ‖WithLp.toLp 2 v‖ = 1) (hD : (C + D) *ᵥ v = 0) :
  frobNorm D = ‖WithLp.toLp 2 (C *ᵥ v)‖ ↔ D = -vecMulVec (C *ᵥ v) (star v)

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.TotalLeastSquares.