NLA-lib Explorer

NLAlib.HoldsMatrix.get_im

Library · theorem

The imaginary part is the second word of its actual matrix entry.

NLAlib.HoldsMatrix.get_im {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) + 1) = some (A i j).im

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.StoredMatrix.