NLA-lib Explorer

NLAlib.HoldsMatrix.get_re

Library · theorem

The real part is the first word of its actual matrix entry.

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

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.StoredMatrix.