Deflation of a Hessenberg matrix into diagonal blocks
Library · Source module
Deflation of a Hessenberg matrix into diagonal blocks
The shifted QR algorithm deflates: when a subdiagonal entry of an active diagonal block is at most a threshold \tau, it sets the entry to zero and continues on the two diagonal blocks separately; a block small enough is handed to an eigenvalue routine. The diagonal blocks are contiguous ranges [lo, lo + d) of the indices, and the matrix they come from is block upper triangular for the partition into ranges. This file states the invariant of that process in exact arithmetic, NLAlib.DeflationInv: the current blocks are the diagonal blocks of a matrix \mathbf{M} = \mathbf{U}^{\mathsf{H}}(\mathbf{H} + \mathbf{E})\mathbf{U}, \mathbf{U} unitary and \|\mathbf{E}\|_2 \le \varepsilon, block upper triangular for the ranges, and the eigenvalues written for the finished ranges are those of their blocks. Each zeroed entry adds its modulus to \varepsilon; at the end the output is exactly the spectrum of \mathbf{H} + \mathbf{E} (a backward error), and by Bauer–Fike each output is within \kappa_V\varepsilon of an eigenvalue of \mathbf{H}. [BanksGarzaVargasSrivastava2022, §6] (Deflate and the while loop of ShiftedQR), here in exact arithmetic and for eigenvalues only.
Matrices have order n + 1, so that a block with a range past the end is read with clamped indices (a junk value no statement uses), as NLAlib.trailingBlock.
Main definitions
* NLAlib.blockIndex, NLAlib.subBlock, NLAlib.subVec, NLAlib.setSubBlock: the block of a range, read and written. * NLAlib.IsRangePartition, NLAlib.rangeLabel: a partition of the indices into ranges, and the start of the range of an index (the block label). * NLAlib.DeflationInv: the invariant of deflation.
Main results
* NLAlib.IsUpperHessenberg.subBlock: a diagonal block of a Hessenberg matrix is Hessenberg. * NLAlib.IsUpperHessenberg.deflationInv_init: the start, one active block. * NLAlib.IsRangePartition.subBlock_setSubBlock: writing the block of a range changes no other block. * NLAlib.DeflationInv.conj: a unitary similarity of an active block. * NLAlib.DeflationInv.split: a split at a small subdiagonal entry. * NLAlib.DeflationInv.finish: a block's eigenvalues written. * NLAlib.DeflationInv.perm, NLAlib.DeflationInv.length_le: the order and the number of ranges. * NLAlib.DeflationInv.exists_roots_eq: the backward error at the end. * NLAlib.DeflationInv.exists_norm_sub_le: the forward error at the end (Bauer–Fike).
Declarations
- NLAlib.DeflationInv
- NLAlib.DeflationInv.conj
- NLAlib.DeflationInv.exists_norm_sub_le
- NLAlib.DeflationInv.exists_roots_eq
- NLAlib.DeflationInv.finish
- NLAlib.DeflationInv.length_le
- NLAlib.DeflationInv.perm
- NLAlib.DeflationInv.split
- NLAlib.DeflationInv.two_mul_length_add_length_lt
- NLAlib.IsRangePartition
- NLAlib.IsRangePartition.blockIndex_injective
- NLAlib.IsRangePartition.blockIndex_ne
- NLAlib.IsRangePartition.rangeLabel_eq
- NLAlib.IsRangePartition.split_cons
- NLAlib.IsRangePartition.subBlock_setSubBlock
- NLAlib.IsRangePartition.val_blockIndex
- NLAlib.IsUpperHessenberg.deflationInv_init
- NLAlib.IsUpperHessenberg.subBlock
- NLAlib.blockIndex
- NLAlib.rangeLabel
- NLAlib.setSubBlock
- NLAlib.subBlock
- NLAlib.subVec