NLAlib.Ops.dotSumRoutine_meets
Library · theorem
Standard rounding
dotSum meets the specification read off the relation of dot, with the error (1 + u) (1 + es n) - 1, over an interpretation whose sum has the error es: the products are formed in a scratch block, summed into the cell, and the scratch block is released.
NLAlib.Ops.dotSumRoutine_meets {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op 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) {es : ℕ → ℝ} {ok : ℕ → Prop}
(hS : Ops.IsSum dec es ok I) (hes : ∀ (n : ℕ), 0 ≤ es n) :
Ops.dotSumRoutine.Meets I
(Ops.Routine.Spec.ofRel (Ops.dotRel dec fun n ↦ (1 + u) * (1 + es n) - 1) fun d ↦
ok (d.headD 0))Import NLAlib.Ops.Blas.Dot.