NLA-lib Explorer

NLAlib.IsQR.isLeastSquaresSolution_backSubst

Library ยท theorem

The least-squares solution by back substitution: for a QR factorization with no zero on the diagonal of \mathbf{R}, \mathbf{x} = \mathbf{R}^{-1}\mathbf{Q}^{\mathsf{H}}\mathbf{b}, computed by back substitution, solves the least-squares problem. [GolubVanLoan2013, Algorithm 5.3.2].

NLAlib.IsQR.isLeastSquaresSolution_backSubst.{u_1, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_3}
  [Fintype m] {k : โ„•} {A Q : Matrix m (Fin k) ๐•œ} {R : Matrix (Fin k) (Fin k) ๐•œ} (h : IsQR A Q R)
  (hR : โˆ€ (i : Fin k), R i i โ‰  0) (b : m โ†’ ๐•œ) : IsLeastSquaresSolution A b (backSubst R (Qแดด *แตฅ b))

Full source on GitHub

Import NLAlib.Matrix.Factorizations.QR.