NLA-lib Explorer

NLAlib.HoldsMatrix.of_get

Library · theorem

Actual component reads of every finite matrix entry reconstruct its packed block.

NLAlib.HoldsMatrix.of_get {rows cols : ℕ} {b : ℕ × ℕ} {A : Matrix (Fin rows) (Fin cols) ℂ}
  {s : Ops.Store ℝ}
  (hr : ∀ (i : Fin rows) (j : Fin cols), s.get b.1 (b.2 + 2 * (↑j * rows + ↑i)) = some (A i j).re)
  (hi :
    ∀ (i : Fin rows) (j : Fin cols), s.get b.1 (b.2 + 2 * (↑j * rows + ↑i) + 1) = some (A i j).im) :
  HoldsMatrix b A s

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.StoredMatrix.