NLA-lib Explorer

NLAlib.shqrShift

Library · def

The shift chosen by \mathrm{Sh}_{k,B}, k = 2^m: a Ritz value in ss that is an eigenvalue of \mathbf{H} if there is one; otherwise a success among NLAlib.shqrCandidates (the promising Ritz value r or an exceptional shift) if there is one, and r if none succeeds (which the convergence theorem excludes). Which eigenvalue or success is taken is a classical choice; no statement depends on it (the paper tries the candidates in order and stops at the first success). The first clause covers the case the paper sets aside, where the shift polynomial is singular. [BanksGarzaVargasSrivastava2021, §4.2].

NLAlib.shqrShift {n : ℕ} (B θ α γ : ℝ) (m : ℕ) (H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)
  (ss : List ℂ) : ℂ

Full source on GitHub

Import NLAlib.Matrix.QRIteration.Strategy.