NLA-lib Explorer

NLAlib.Ops.Machine.newtonSchulzSign_toFloatMachine_samplers

Library · theorem

The sign routine is unchanged when only the two mathematical sampler fields change.

NLAlib.Ops.Machine.newtonSchulzSign_toFloatMachine_samplers {K Su Sg 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) (unif' : K → Su' → K) (normal' : Sg' → K × K)
  (eps scale : K) (cap : ℕ) {k : ℕ} (A : Matrix (Fin k) (Fin k) (K × K)) :
  newtonSchulzSign (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal) eps scale
      cap A =
    newtonSchulzSign (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif' normal') eps
      scale cap A

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsSampleCongr.