NLA-lib Explorer

NLAlib.isLeastSquaresSolution_iff

Library Β· theorem

IsLeastSquaresSolution unfolded.

NLAlib.isLeastSquaresSolution_iff.{u_1, u_3, u_4} {π•œ : Type u_1} [RCLike π•œ] {m : Type u_3}
  {n : Type u_4} [Fintype m] [Fintype n] {A : Matrix m n π•œ} {b : m β†’ π•œ} {x : n β†’ π•œ} :
  IsLeastSquaresSolution A b x ↔
    βˆ€ (y : n β†’ π•œ), β€–WithLp.toLp 2 (b - A *α΅₯ x)β€– ≀ β€–WithLp.toLp 2 (b - A *α΅₯ y)β€–

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.