NLAlib.Ops.Examples.runs_cgs_rounded
Library · theorem
Relative-error BLAS
The abstract theorem of cgs, from its certificate by the bridge: for every interpretation satisfying the contracts of scalar arithmetic and of the level-1 operations at ε, the run terminates within cgsCount n p calls and cgsPeak W n scratch cells, writes only Q and R, and every computed column satisfies CgsCol. The block R is an input too: it is readable, and only its upper triangle is specified.
NLAlib.Ops.Examples.runs_cgs_rounded {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) (W : Op → List ℕ → ℕ) {τ : Ops.Tape K} {n p : ℕ}
{A Q R : ℕ × ℕ} {μ : Ops.Mem K} {as r₀ : List K} (hok : ok n) (hAQ : A.1 ≠ Q.1) (hAR : A.1 ≠ R.1)
(hQR : Q.1 ≠ R.1) (hl : μ.Live [A, Q, R]) (hA : μ.store.readBlock A.1 A.2 (p * n) = some as)
(hR₀ : μ.store.readBlock R.1 R.2 (p * p) = some r₀) (hQ : Q.2 + p * n ≤ μ.store.len Q.1)
(hR : R.2 + p * p ≤ μ.store.len R.1) :
Ops.ConditionalRuns J W τ Ops.Examples.cgs (Ops.Env.frame [n, p] [A, R, Q, R]) μ
(Ops.Examples.cgsCount n p) (Ops.Examples.cgsPeak W n)
(Ops.Examples.CgsFactored dec ε n p Q R as μ)Import NLAlib.Ops.Examples.CgsQR.