The QR factorization
Library · Source module
The QR factorization
NLAlib.IsQR A Q R says that \mathbf{A} = \mathbf{Q}\mathbf{R} with \mathbf{Q} having orthonormal columns and \mathbf{R} square upper triangular: the thin QR factorization of a matrix with at least as many rows as columns. \mathbf{R} has the Gram matrix, singular values and pseudo-condition number of \mathbf{A}; when \mathbf{A} has full column rank, \mathbf{R} is invertible, \mathbf{Q}\mathbf{Q}^{\mathsf{H}} is the orthogonal projector onto the range, the least-squares problem is the triangular system \mathbf{R}\mathbf{x} = \mathbf{Q}^{\mathsf{H}}\mathbf{b}, and the factorization with positive diagonal is unique.
The full factorization, with a square unitary factor and an upper trapezoidal one, is stated for matrices indexed by Fin. Existence is read off Mathlib's InnerProductSpace.gramSchmidtOrthonormalBasis, applied to the columns padded with zero vectors.
Main definitions
* NLAlib.IsQR: the factorization predicate.
Main results
* NLAlib.exists_isQR, NLAlib.exists_isQR_of_injective, NLAlib.IsQR.unique. * NLAlib.IsQR.conjTranspose_mul_self, NLAlib.IsQR.singularValues_eq, NLAlib.IsQR.pseudoConditionNumber_eq. * NLAlib.IsQR.pinv_eq, NLAlib.IsQR.mul_conjTranspose_eq_rangeProjector. * NLAlib.IsQR.isUnit_iff, NLAlib.IsQR.isUnit_iff_injective_mulVec, NLAlib.IsQR.mul_inv_eq: an invertible triangular factor and \mathbf{Q} = \mathbf{A}\mathbf{R}^{-1}. * NLAlib.IsQR.isLeastSquaresSolution_backSubst: the triangular solve. * NLAlib.IsQR.isLeastSquaresSolution_iff: least squares through QR. * NLAlib.IsQR.isCholesky: \mathbf{R}^{\mathsf{H}} is the Cholesky factor of the Gram matrix. * NLAlib.exists_hasOrthonormalCols_mul_isUpperTrapezoidal, NLAlib.exists_hasOrthonormalCols_mul_isUpperTrapezoidal_nonneg: the full factorization. * NLAlib.HasOrthonormalCols.isQR_submatrix_castLE, NLAlib.IsQR.exists_hasOrthonormalCols_mul_isUpperTrapezoidal: from the full factorization to the thin one and back.
Declarations
- NLAlib.HasOrthonormalCols.isQR_submatrix_castLE
- NLAlib.IsQR
- NLAlib.IsQR.apply_self_pos
- NLAlib.IsQR.conjTranspose_mul_eq
- NLAlib.IsQR.conjTranspose_mul_self
- NLAlib.IsQR.exists_hasOrthonormalCols_mul_isUpperTrapezoidal
- NLAlib.IsQR.injective_mulVec_iff
- NLAlib.IsQR.isCholesky
- NLAlib.IsQR.isHermitian_mul
- NLAlib.IsQR.isLeastSquaresSolution_backSubst
- NLAlib.IsQR.isLeastSquaresSolution_iff
- NLAlib.IsQR.isLeastSquaresSolution_of_mulVec_eq
- NLAlib.IsQR.isUnit
- NLAlib.IsQR.isUnit_iff
- NLAlib.IsQR.isUnit_iff_injective_mulVec
- NLAlib.IsQR.mul_add_smul_one_eq
- NLAlib.IsQR.mul_conjTranspose_eq_rangeProjector
- NLAlib.IsQR.mul_diagonal
- NLAlib.IsQR.mul_eq_conjTranspose_mul_mul
- NLAlib.IsQR.mul_inv_eq
- NLAlib.IsQR.mul_left
- NLAlib.IsQR.pinv_eq
- NLAlib.IsQR.pinv_eq_inv_mul
- NLAlib.IsQR.pseudoConditionNumber_eq
- NLAlib.IsQR.rank_eq
- NLAlib.IsQR.singularValues_eq
- NLAlib.IsQR.span_col_image_Iic
- NLAlib.IsQR.submatrix_rows
- NLAlib.IsQR.unique
- NLAlib.existsUnique_isQR_of_injective
- NLAlib.exists_hasOrthonormalCols_mul_isUpperTrapezoidal
- NLAlib.exists_hasOrthonormalCols_mul_isUpperTrapezoidal_nonneg
- NLAlib.exists_isQR
- NLAlib.exists_isQR_of_injective