NLA-lib Explorer

NLAlib.ShiftedQR.ritz_writes

Library · theorem

A Ritz call writes the requested list of the supplied local routine applied to the actual input matrix. Input/output overlap is permitted because the input block is read first. The rule for one call of the operation.

NLAlib.ShiftedQR.ritz_writes {O Q : Type} [Ops.Has ShiftedQR.EigenvalueKernelOp O] {θ : ℝ}
  {K : ShiftedQR.KernelRoutines θ} {I : Ops.Interp O Q ℝ} {τ : Ops.Tape ℝ} {ρ : Ops.Env}
  {μ : Ops.Mem ℝ} (hI : ShiftedQR.IsEigenvalueKernels K I) {ds : List Ops.IExp}
  {ins outs : List Ops.Operand} {N k : ℕ} {a b : ℕ × ℕ} {H : Matrix (Fin N) (Fin N) ℂ}
  (hd : Ops.IExp.evalList ρ.idx ds = some [N, k]) (ha : Ops.Operand.evalList ρ ins = some [a])
  (hb : Ops.Operand.evalList ρ outs = some [b]) (hl : μ.Live [a, b]) (hH : HoldsMatrix a H μ.store)
  (hB : b.2 + 2 * k ≤ μ.store.len b.1) :
  Ops.Writes Ops.Mode.total I τ
    (Ops.Stmt.call (Ops.Has.inj ShiftedQR.EigenvalueKernelOp.ritz) ds ins outs) ρ
    (Ops.Store.inBlock b.1 b.2 (2 * k))
    (fun μ' ↦ μ'.pos = μ.pos ∧ HoldsMatrix b (listColumn (K.ritz N k H) k) μ'.store) μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Kernels.