NLA-lib Explorer

NLAlib.Ops.IsNrm2Err.norm_error_bounds

Library · theorem

The actual computed norm is nonnegative and has relative norm error at most the dot allowance plus the square-root allowance times one plus the dot allowance. Both primitive allowances are below one; the square-root allowance is nonnegative. [Higham2002, §3.1].

NLAlib.Ops.IsNrm2Err.norm_error_bounds {K : Type} [Inhabited K] {dec : K → ℝ} {ed es : ℝ} {n : ℕ}
  {xs : List K} {ν : K} (h : Ops.IsNrm2Err dec ed es n (Ops.vec xs) ν) (hd : ed < 1) (hes : 0 ≤ es)
  (hs : es < 1) :
  0 ≤ dec ν ∧
    |dec ν - ‖WithLp.toLp 2 (Ops.decv dec n xs)‖| ≤
      (ed + es * (1 + ed)) * ‖WithLp.toLp 2 (Ops.decv dec n xs)‖

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Math.NormGuard.