Givens QR of an upper Hessenberg matrix
Library · Source module
Givens QR of an upper Hessenberg matrix
The step-indexed Givens QR NLAlib.givensHessenbergState of Givens.lean, applied to an upper Hessenberg matrix \mathbf{H}, produces a thin QR factorization: after the p steps the rotated matrix is upper trapezoidal, and its leading square block is the triangular factor. For a tridiagonal input the triangular factor has three diagonals. The pivots are nonzero exactly when \mathbf{H} has full column rank, and the leading (k+1) \times k block of the state is the Givens QR of the leading block of \mathbf{H}, so step k solves the leading least-squares problem by back substitution and its residual is the modulus of entry k of the rotated first coordinate vector. GMRES and MINRES consume this progressive form.
These results live in their own file because IsUpperHessenberg is defined in Hessenberg.lean, which imports Givens.lean.
Main results
* NLAlib.isUpperTrapezoidal_givensHessenbergR, NLAlib.isQR_givensHessenberg: Givens QR of an upper Hessenberg matrix is a thin QR factorization. * NLAlib.givensHessenbergR_apply_eq_zero_of_add_two_lt: three diagonals for a tridiagonal input. * NLAlib.forall_givensHessenbergR_apply_self_ne_zero_iff: nonzero pivots iff full column rank. * NLAlib.isUpperHessenberg_givensHessenbergQ: the unitary factor is upper Hessenberg, for every input. * NLAlib.givensHessenbergState_snd_apply_of_eq_add_one, NLAlib.givensHessenbergState_fst_mulVec_apply_eq_zero_of_le: rows and coordinates the early steps leave untouched. * NLAlib.pinv_submatrix_mulVec_single_eq_backSubst, NLAlib.norm_sub_mulVec_pinv_submatrix_mulVec_single_eq: the progressive least-squares form and its residual.
Declarations
- NLAlib.forall_givensHessenbergR_apply_self_ne_zero_iff
- NLAlib.givensHessenbergR_apply_eq_zero_of_add_two_lt
- NLAlib.givensHessenbergState_fst_mulVec_apply_eq_zero_of_le
- NLAlib.givensHessenbergState_snd_apply_of_eq_add_one
- NLAlib.hasOrthonormalCols_givensHessenbergQ
- NLAlib.isQR_givensHessenberg
- NLAlib.isUpperHessenberg_givensHessenbergQ
- NLAlib.isUpperTrapezoidal_givensHessenbergR
- NLAlib.norm_sub_mulVec_pinv_submatrix_mulVec_single_eq
- NLAlib.pinv_submatrix_mulVec_single_eq_backSubst