NLA-lib Explorer

NLAlib.LinearSystems.Refinement.Rounded.Certification.vec_encode_matrix

Library · theorem

The word at the position of entry (i, j) of a matrix stored by columns is the entry.

NLAlib.LinearSystems.Refinement.Rounded.Certification.vec_encode_matrix {n : ℕ}
  (A : Matrix (Fin n) (Fin n) ℝ) (i j : Fin n) :
  Ops.vec ((Ops.Codec.matrix (Ops.EntryCodec.scalar ℝ) n n).encode A) (↑j * n + ↑i) = A i j

Full source on GitHub

Import NLAlib.LinearSystems.Refinement.Rounded.Certification.