NLAlib.CGS2.zeroRows_writes
Library · theorem
The loop that sets the rows k, …, k + b - 1 of column c of the coefficient block to the zero literal writes those cells only. A fragment of NLAlib.CGS2.cgs2ExtendRoutine.
NLAlib.CGS2.zeroRows_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine K}
{I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) {τ' : Ops.Tape K} {n k b c : ℕ} {Q W C : ℕ × ℕ}
{hb tb : ℕ} {m : Ops.Mem K} (hC : C.1 < List.length m.store)
(hroom : C.2 + c * (k + b) + k + b ≤ m.store.len C.1) :
Ops.Writes Ops.Mode.total I τ'
(Ops.Stmt.loop (Ops.IExp.var 2)
(Ops.Stmt.call (Ops.Has.inj (Ops.ScalarOp.lit 0)) [] []
[{ buf := 4,
off :=
Ops.IExp.var 7 + Ops.IExp.var 8 * (Ops.IExp.var 1 + Ops.IExp.var 2) + Ops.IExp.var 1 +
Ops.IExp.var 9 }]))
(CGS2.colEnv n k b c Q W C hb tb) (Ops.Store.inBlock C.1 (C.2 + c * (k + b) + k) b)
(fun m' ↦ (m'.store.HoldsVec C.1 (C.2 + c * (k + b) + k) b fun x ↦ M.lit 0) ∧ m'.pos = m.pos) mImport NLAlib.Krylov.Orthogonalization.CGS2.ExtendColumn.