NLA-lib Explorer

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)))
    m

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.ProjectPacked.