NLA-lib Explorer

NLAlib.SpectralBisection.StoresLevel.nodeAtSlot_matrix

Library · theorem

A positive slot's actual packed matrix is the matrix of its typed mathematical lookup.

NLAlib.SpectralBisection.StoresLevel.nodeAtSlot_matrix {K : Type} {M : Ops.Machine K}
  {F : FloatMachine K ℕ ℕ} {n fuel d lo : ℕ} {R0 beta : K} {root : EighNode K} {ma sz lv : ℕ × ℕ}
  {m : Ops.Mem K} (h : SpectralBisection.StoresLevel M F n fuel R0 beta root d ma sz lv m)
  (hp : 0 < (SpectralBisection.nodeAtSlot F n fuel R0 beta root d lo).k) :
  m.store.readBlock ma.1 (ma.2 + 2 * (n * n) * d + 2 * n * lo)
      (2 *
        ((SpectralBisection.nodeAtSlot F n fuel R0 beta root d lo).k *
          (SpectralBisection.nodeAtSlot F n fuel R0 beta root d lo).k)) =
    some
      ((Ops.EntryCodec.pair K).packFinMatrix
        (SpectralBisection.nodeAtSlot F n fuel R0 beta root d lo).A)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.SlotNodes.