NLA-lib Explorer

NLAlib.isOptimalRitzValues_of_lt

Library · theorem

The optimality test with a computed norm, positive branch (Optimal, [BanksGarzaVargasSrivastava2022, Lemma 4.5]): if the computed value t is within 0.0009\,(\theta\psi_k)^k of \|\mathbf{e}_n^{\mathsf{T}}p(\mathbf{H})\| and t < 0.999(\theta\psi_k)^k, the shifts are \theta-optimal.

NLAlib.isOptimalRitzValues_of_lt {n : ℕ} {θ t : ℝ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {ss : List ℂ}
  (ht :
    |t - ‖WithLp.toLp 2 ((Polynomial.aeval H) (shiftPoly ss) (Fin.last n))‖| ≤
      9e-4 * (θ * hessenbergPotential ss.length H) ^ ss.length)
  (hlt : t < 0.999 * (θ * hessenbergPotential ss.length H) ^ ss.length) : IsOptimalRitzValues θ H ss

Full source on GitHub

Import NLAlib.Matrix.QRIteration.RoundedStrategy.