NLA-lib Explorer

NLAlib.IsQR.mul_add_smul_one_eq

Library · theorem

One shifted step of the QR iteration is a unitary similarity: if \mathbf{H} - \mu \mathbf{I} = \mathbf{Q}\mathbf{R} then \mathbf{R}\mathbf{Q} + \mu \mathbf{I} = \mathbf{Q}^{\mathsf{H}}\mathbf{H}\mathbf{Q}. [GolubVanLoan2013, §7.5.2].

NLAlib.IsQR.mul_add_smul_one_eq.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_4} [Fintype n]
  [LinearOrder n] [DecidableEq n] {H Q R : Matrix n n 𝕜} {μ : 𝕜} (h : IsQR (H - μ • 1) Q R) :
  R * Q + μ • 1 = Qᴴ * H * Q

Full source on GitHub

Import NLAlib.Matrix.Factorizations.QR.