NLAlib.isTotalLeastSquaresSolution_toCols₁_iff
Library · theorem
For an assembled augmented matrix \mathbf{C}=[\mathbf{A}\ \mathbf{b}], an optimal correction of \mathbf{C} gives a solution for its two column blocks. [GolubVanLoan2013, §6.3].
NLAlib.isTotalLeastSquaresSolution_toCols₁_iff.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜]
{m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] (C : Matrix m (n ⊕ Unit) 𝕜) (x : n → 𝕜) :
IsTotalLeastSquaresSolution C.toCols₁ (C.col (Sum.inr ())) x ↔
∃ D, (C + D) *ᵥ (x ⊕ᵥ fun x ↦ -1) = 0 ∧ IsLeast (totalLeastSquaresCosts C) (frobNorm D ^ 2)Import NLAlib.Matrix.Pseudoinverse.TotalLeastSquares.