NLAlib.shiftedQRStep
Library · def
One single-shift QR step with shift s: with \mathbf{Q} the unitary factor of Givens QR of \mathbf{H} - s\mathbf{I} (NLAlib.givensHessenbergQ), the matrix \mathbf{Q}^{\mathsf{H}}\mathbf{H}\mathbf{Q} = \mathbf{R}\mathbf{Q} + s\mathbf{I}. On an upper Hessenberg matrix it is the exact-arithmetic implicit QR step of [BanksGarzaVargasSrivastava2021, Definition 2.1]. Givens QR never breaks down, so the step is defined also when \mathbf{H} - s\mathbf{I} is singular, and it keeps the Hessenberg form then. [GolubVanLoan2013, §7.5.2]. Algorithm: shifted-qr (specification)
NLAlib.shiftedQRStep {n : ℕ} (H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (s : ℂ) :
Matrix (Fin (n + 1)) (Fin (n + 1)) ℂImport NLAlib.Matrix.QRIteration.ShiftedQR.