NLAlib.Ops.Examples.cgsRoutine_meets
Library · theorem
Relative-error BLAS
cgs meets the specification read off its relation, for every interpretation satisfying the contracts of scalar arithmetic and of the level-1 operations at ε. Proved by block specifications: two allocations, the loop over the columns in the standard invariant form, and cgsCol_writes in each column.
NLAlib.Ops.Examples.cgsRoutine_meets {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Inhabited K] {M : Ops.Machine K} {dec : K → ℝ} {ε : Ops.Blas1Err}
{ok : ℕ → Prop} {J : Ops.Interp Op Tst K} (hS : Ops.IsScalar M J) (hJ : Ops.IsBlas1 dec ε ok J)
(hneg : ∀ (x : K), dec (M.neg x) = -dec x) :
Ops.Examples.cgsRoutine.Meets J
(Ops.Routine.Spec.ofRel (Ops.Examples.cgsRel dec ε) fun d ↦ ok (d.headD 0))Import NLAlib.Ops.Examples.CgsQR.