NLA-lib Explorer

NLAlib.Ops.axpyLoopRoutine_meets

Library · theorem

Standard rounding

The axpy loop meets the specification read off the relation of axpy, with the error (1 + u) ^ 2 - 1: the bound of the standard model read off the words it writes.

NLAlib.Ops.axpyLoopRoutine_meets {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Inhabited K]
  {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {u : ℝ} {dec : K → ℝ}
  (hM : Ops.StdModel u dec M) (hu : 0 ≤ u) (ok : ℕ → Prop) :
  Ops.axpyLoopRoutine.Meets I
    (Ops.Routine.Spec.ofRel (Ops.axpyRel dec ((1 + u) ^ 2 - 1)) fun d ↦ ok (d.headD 0))

Full source on GitHub

Import NLAlib.Ops.Blas.Level1.