NLA-lib Explorer

NLAlib.ShiftedQR.smallEig_writes

Library · theorem

A small-eigenvalue call writes every characteristic-polynomial root with multiplicity of its actual stored matrix. The local listing law belongs to the supplied routine. The rule for one call of the operation.

NLAlib.ShiftedQR.smallEig_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 : ℕ} {a b : ℕ × ℕ} {H : Matrix (Fin N) (Fin N) ℂ}
  (hd : Ops.IExp.evalList ρ.idx ds = some [N]) (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 * N ≤ μ.store.len b.1) :
  Ops.Writes Ops.Mode.total I τ
    (Ops.Stmt.call (Ops.Has.inj ShiftedQR.EigenvalueKernelOp.smallEig) ds ins outs) ρ
    (Ops.Store.inBlock b.1 b.2 (2 * N))
    (fun μ' ↦ μ'.pos = μ.pos ∧ HoldsMatrix b (of fun i x ↦ K.smallEig N H i) μ'.store) μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Kernels.