NLA-lib Explorer

NLAlib.HoldsMatrix.read_entry

Library · theorem

Each entry is readable as its pair of component words.

NLAlib.HoldsMatrix.read_entry {rows cols : ℕ} {b : ℕ × ℕ} {A : Matrix (Fin rows) (Fin cols) ℂ}
  {s : Ops.Store ℝ} (h : HoldsMatrix b A s) (i : Fin rows) (j : Fin cols) :
  s.readBlock b.1 (b.2 + 2 * (↑j * rows + ↑i)) 2 = some [(A i j).re, (A i j).im]

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.StoredMatrix.