NLAlib.matMulOn_writes_word
Library · theorem
NLAlib.matMulOn with c = 0 on contiguous views (leading dimensions the row counts), on a scalar machine and every tape: from \mathbf{X} (m \times p) at x and \mathbf{Y} (p \times q) at y, with room for the output at z apart from both, it writes only the output and stores NLAlib.matMulWord. Shared by the trees of NLAlib.ShiftedQR.roundedDecoupleUpdate, NLAlib.ShiftedQR.roundedLeafUpdate, NLAlib.matMulLBody.
NLAlib.matMulOn_writes_word {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {m p q : ℕ}
{x y z : ℕ × ℕ} {X : Matrix (Fin m) (Fin p) ℂ} {Y : Matrix (Fin p) (Fin q) ℂ}
(hX : HoldsMatrix x X μ.store) (hY : HoldsMatrix y Y μ.store) (hl : μ.Live [x, y, z])
(hz : z.2 + 2 * (m * q) ≤ μ.store.len z.1)
(hxz :
Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 (2 * (m * p))) (Ops.Store.inBlock z.1 z.2 (2 * (m * q))))
(hyz :
Ops.Fp.Disj (Ops.Store.inBlock y.1 y.2 (2 * (p * q)))
(Ops.Store.inBlock z.1 z.2 (2 * (m * q)))) :
Ops.Writes Ops.Mode.total I τ matMulOn (Ops.Env.frame [m, p, q, m, p, m, 0] [x, y, z])
(Ops.Store.inBlock z.1 z.2 (2 * (m * q)))
(fun μ' ↦ μ'.pos = μ.pos ∧ HoldsMatrix z (matMulWord M X Y) μ'.store) μImport NLAlib.Matrix.FinitePrecision.StoredProducts.