NLAlib.SpectralBisection.upShiftResult_writes
Library · theorem
The actual child basis and pointwise shifted eigenvalues are returned together. Spatial separation allows input and output regions to share an arena buffer. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.upShiftResult_writes {K Op Tst : Type} [Inhabited K]
[Ops.Has Ops.ScalarOp Op] {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I)
{τ : Ops.Tape K} {m : Ops.Mem K} {k : ℕ} {uc ec sigma u e : ℕ × ℕ}
(U : Matrix (Fin k) (Fin k) (K × K)) (values : List K) (s : K) (hl : m.Live [uc, ec, sigma, u, e])
(hU : m.store.readBlock uc.1 uc.2 (2 * (k * k)) = some ((Ops.EntryCodec.pair K).packFinMatrix U))
(hE : m.store.readBlock ec.1 ec.2 k = some values) (hs : m.store.get sigma.1 sigma.2 = some s)
(hu : u.2 + 2 * (k * k) ≤ m.store.len u.1) (he : e.2 + k ≤ m.store.len e.1)
(hap : Ops.Fp.Apart [u, e, uc, ec, sigma] [2 * (k * k), k, 2 * (k * k), k, 1]) :
Ops.Writes Ops.Mode.total I τ SpectralBisection.upShiftResult
(Ops.Env.frame [k] [uc, ec, sigma, u, e]) (Ops.Fp.blocks [u, e] [2 * (k * k), k])
(fun m' ↦
m'.pos = m.pos ∧
m'.readBlocks [u, e] [2 * (k * k), k] =
some [(Ops.EntryCodec.pair K).packFinMatrix U, List.map (fun v ↦ M.add v s) values])
mImport NLAlib.Eigensolvers.SpectralBisection.UpShift.