NLA-lib Explorer

NLAlib.Ops.Hermitian.map_neg_packFinMatrix

Library · theorem

Mapping scalar negation over the packed words is exactly packing the mathematical machine's entrywise pair negation. The equality preserves the actual component order.

NLAlib.Ops.Hermitian.map_neg_packFinMatrix {K Su Sg : Type} (M : Ops.Machine K) (dec : K → ℝ)
  (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (unif : K → Su → K) (normal : Sg → K × K) {r c : ℕ}
  (A : Matrix (Fin r) (Fin c) (K × K)) :
  List.map M.neg ((Ops.EntryCodec.pair K).packFinMatrix A) =
    (Ops.EntryCodec.pair K).packFinMatrix
      ((M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal).negMat A)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsHermitian.