NLA-lib Explorer

NLAlib.IsLeastSquaresSolution

Library ยท def

\mathbf{x} is a least-squares solution of \mathbf{A}\mathbf{x} \approx \mathbf{b}: it minimises the Euclidean norm of the residual \mathbf{b} - \mathbf{A}\mathbf{x} over all vectors, \|\mathbf{b} - \mathbf{A}\mathbf{x}\| \le \|\mathbf{b} - \mathbf{A}\mathbf{y}\| for every \mathbf{y}. [GolubVanLoan2013, ยง5.3].

NLAlib.IsLeastSquaresSolution.{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 โ†’ ๐•œ) : Prop

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.