NLAlib.isLeastSquaresSolution_iff_exists
Library ยท theorem
All least-squares solutions: they are the pseudoinverse solution plus an element of the kernel of \mathbf{A}: \mathbf{x} is a least-squares solution exactly when \mathbf{x} = \mathbf{A}^{+}\mathbf{b} + (\mathbf{I} - \mathbf{A}^{+}\mathbf{A})\mathbf{z} for some \mathbf{z}.
NLAlib.isLeastSquaresSolution_iff_exists.{u_1, u_3, u_4} {๐ : Type u_1} [RCLike ๐] {m : Type u_3}
{n : Type u_4} [Fintype m] [Fintype n] [DecidableEq n] {A : Matrix m n ๐} {b : m โ ๐}
{x : n โ ๐} : IsLeastSquaresSolution A b x โ โ z, x = pinv A *แตฅ b + (1 - pinv A * A) *แตฅ zImport NLAlib.Matrix.Pseudoinverse.LeastSquares.