NLAlib.HutchPlusPlus.projectProbes_writes_packed
Library ยท theorem
Project the actual stored probes and retain the basis, with an exact matrix result. The computation is valid for every basis, including zero and dependent columns. A fragment of NLAlib.HutchPlusPlus.estimateRoutine: run only inside its tree, on its operands and the buffers it allocates.
NLAlib.HutchPlusPlus.projectProbes_writes_packed {๐ Op Tst : Type} [RCLike ๐]
[Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op] {I : Ops.Interp Op Tst ๐} {ฯ : Ops.Tape ๐}
{m : Ops.Mem ๐} (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hB : Ops.RCLikeBlas.IsExact I)
{n k ell : โ} {b t : โ ร โ} (Q : Matrix (Fin n) (Fin k) ๐) (G : Matrix (Fin n) (Fin ell) ๐)
(hl : m.Live [b, t])
(hInput :
m.store.readBlock b.1 b.2 ((k + ell) * n) =
some ((Ops.EntryCodec.scalar ๐).packFinMatrix (HutchPlusPlus.basisProbes Q G)))
(hTB : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock b.1 b.2 ((k + ell) * n)))
(ht : t.2 + 2 โค m.store.len t.1) (hb : b.2 + (k + ell) * n โค m.store.len b.1) :
Ops.Writes Ops.Mode.total I ฯ HutchPlusPlus.projectProbes (Ops.Env.frame [n, k, ell] [b, t])
(Ops.Store.inBlock b.1 (b.2 + n * k) (ell * n) โ Ops.Store.inBlock t.1 t.2 2)
(fun m' โฆ
m'.pos = m.pos โง
m'.store.readBlock b.1 b.2 ((k + ell) * n) =
some ((Ops.EntryCodec.scalar ๐).packFinMatrix (HutchPlusPlus.projectedBasis Q G)))
mImport NLAlib.Estimation.Trace.HutchPlusPlus.ProjectPacked.