NLA-lib Explorer

Householder reflectors and Householder QR

Library · Source module

Householder reflectors and Householder QR

The Householder reflector of a vector \mathbf{v} is \mathbf{I} - (2 / \|\mathbf{v}\|^2) \mathbf{v}\mathbf{v}^{\mathsf{H}}: Hermitian, unitary, an involution, sending \mathbf{v} to -\mathbf{v} and fixing the orthogonal complement of \mathbf{v}. For every vector \mathbf{x} and coordinate i_0 there is a reflector sending \mathbf{x} to a multiple of the coordinate vector \mathbf{e}_{i_0}; NLAlib.householderVector is the numerically stable choice of \mathbf{v}.

Householder QR applies such reflectors to clear the columns of a matrix below the diagonal. It is defined for matrices indexed by Fin m and Fin n and never breaks down.

Main definitions

* NLAlib.householder: the reflector of a vector (the identity for the zero vector). * NLAlib.householderVector: the vector whose reflector sends \mathbf{x} to a multiple of \mathbf{e}_{i_0}. * NLAlib.householderQ, NLAlib.householderR: the factors computed by Householder QR.

Main results

* NLAlib.isHermitian_householder, NLAlib.householder_mul_self, NLAlib.hasOrthonormalCols_householder, NLAlib.det_householder. * NLAlib.householder_mulVec_householderVector: the reflector clears a vector. * NLAlib.householderQ_mul_householderR, NLAlib.hasOrthonormalCols_householderQ, NLAlib.isUpperTrapezoidal_householderR: Householder QR computes the full factorization.

Declarations