NLAlib.Ops.RCLikeScalar.axpy_blocks
Library · theorem
The run of the axpy tree on a scalar a, vectors x, y and an output z that is apart from each vector or is that vector, as the blocks of the exact axpy.
NLAlib.Ops.RCLikeScalar.axpy_blocks {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {𝕜 : Type} [RCLike 𝕜]
{I : Ops.Interp Op Tst 𝕜} (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) {n : ℕ} {a x y z : ℕ × ℕ}
{τ : Ops.Tape 𝕜} {μ : Ops.Mem 𝕜} {vals : List (List 𝕜)} (hl : μ.Live [a, x, y, z])
(hread : μ.readBlocks [a, x, y] [1, n, n] = some vals)
(hxz : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 n) (Ops.Store.inBlock z.1 z.2 n) ∨ x = z)
(hyz : Ops.Fp.Disj (Ops.Store.inBlock y.1 y.2 n) (Ops.Store.inBlock z.1 z.2 n) ∨ y = z)
(haz : Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 1) (Ops.Store.inBlock z.1 z.2 n))
(hz : z.2 + n ≤ μ.store.len z.1) :
Ops.Writes Ops.Mode.total I τ Ops.RCLikeScalar.axpy (Ops.Env.frame [n] [a, x, y, z])
(Ops.Fp.blocks [z] [n])
(fun μ' ↦
μ'.pos = μ.pos + 0 ∧
∃ ys,
μ'.readBlocks [z] [n] = some ys ∧
(Ops.RCLikeBlas.functions Ops.Blas1Op.axpy).rel.rel [n] vals [] ys)
μImport NLAlib.Ops.Profiles.RCLikeScalar.