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))Import NLAlib.Matrix.Factorizations.QR.