NLA-lib Explorer

NLAlib.SmallEig.oneEigDirections_writes

Library · theorem

NLAlib.SmallEig.oneEigDirections on a scalar machine: with room for twelve words at d and one at k in another buffer, it writes only those words and stores words there. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.oneEigDirections_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
  {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {L : ℕ}
  (hlen : L + 7 ≤ List.length μ.store) (h5 : μ.store.len (L + 5) = 12)
  (h6 : μ.store.len (L + 6) = 2) :
  Ops.Writes Ops.Mode.total I τ SmallEig.oneEigDirections
    (Ops.Env.frame [] [(L + 5, 0), (L + 6, 0)])
    (Ops.Store.inBlock (L + 5) 0 12 ⊔ Ops.Store.inBlock (L + 6) 0 1)
    (fun μ' ↦ Ops.HoldsWords μ'.store ((L + 6, 0) :: List.map (fun i ↦ (L + 5, i)) (List.range 12)))
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.OneEigParts.