NLAlib.ShiftedQR.findRitz_window_succ
Library · theorem
One level of the binary search, on the window of 2^{r+1} values from index a: the search compares the windows of its two halves and descends into the first on a tie.
NLAlib.ShiftedQR.findRitz_window_succ {n : ℕ} (H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (r e a : ℕ)
(ss : List ℂ) (hlen : a + 2 ^ (r + 1) ≤ ss.length) :
findRitz H (r + 1) e (List.take (2 ^ (r + 1)) (List.drop a ss)) =
if
‖WithLp.toLp 2
((((Polynomial.aeval H)
(shiftPoly (List.take (2 ^ r) (List.drop (a + 2 ^ r) ss))))⁻¹ ^
e)
(Fin.last n))‖ ≤
‖WithLp.toLp 2
((((Polynomial.aeval H) (shiftPoly (List.take (2 ^ r) (List.drop a ss))))⁻¹ ^ e)
(Fin.last n))‖ then
findRitz H r (2 * e) (List.take (2 ^ r) (List.drop a ss))
else findRitz H r (2 * e) (List.take (2 ^ r) (List.drop (a + 2 ^ r) ss))Import NLAlib.Eigensolvers.ShiftedQR.FindRitzMath.