NLA-lib Explorer

NLAlib.Ops.PairMatrix.traceReF_packFinMatrix

Library · theorem

The packed trace's word recurrence is the existing finite mathematical trace, with the same left-to-right rounded additions and the same literal-zero initial accumulator.

NLAlib.Ops.PairMatrix.traceReF_packFinMatrix {K Su Sg : Type} [Inhabited K] {M : Ops.Machine K}
  {dec : K → ℝ} {mm : MatMulMap (K × K)} {qr : QRMap (K × K)} {unif : K → Su → K}
  {normal : Sg → K × K} {n : ℕ} (A : Matrix (Fin n) (Fin n) (K × K)) :
  Ops.PairMatrix.traceReF M n (Ops.vec ((Ops.EntryCodec.pair K).packFinMatrix A)) n =
    (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal).traceRe A

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsMatrix.