NLA-lib Explorer

NLAlib.findRitz

Library · def

The binary search for a promising Ritz value (\mathrm{Find} of [BanksGarzaVargasSrivastava2021, §4.3]). findRitz H m e ss with ss of length 2^m splits ss into its first and second halves a, \mathbf{b}, keeps the half h with the larger \|\mathbf{e}_n^{\mathsf{H}}p_h(\mathbf{H})^{-e}\| (the first on a tie), and recurses with exponent 2e; after m halvings one shift is left. The strategy calls it with e = 1, so that level j compares degree 2^{m-1} polynomials p_h^{2^{j-1}}, as in the paper. With p_h(\mathbf{H}) singular the inverse is Lean's junk value; the analysis assumes that no shift is an eigenvalue. Algorithm: shifted-qr (specification)

NLAlib.findRitz {n : ℕ} (H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) : ℕ → ℕ → List ℂ → ℂ

Full source on GitHub

Import NLAlib.Matrix.QRIteration.Ritz.