NLA-lib Explorer

NLAlib.Krylov.CG.HSPCG.Rounded.isPreconditioner_of_oracle

Library · theorem

The same functional tagged primitive satisfies the rounded normwise preconditioner contract with the oracle's relative tolerance and reference matrix norm.

NLAlib.Krylov.CG.HSPCG.Rounded.isPreconditioner_of_oracle {Op Tst : Type}
  [Ops.Has (Ops.Tagged Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp) Op] {n : ℕ}
  {P : Matrix (Fin n) (Fin n) ℝ} {O : MatvecOracle P} {I : Ops.Interp Op Tst ℝ}
  (h :
    I.IsFn Ops.Mode.total (Ops.Tagged.inj Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp.matvec)
      (Ops.matvecFn O.mulVec) (Ops.MatvecOperands n n)) :
  Krylov.CG.HSPCG.Rounded.IsPreconditioner id P (O.ε * specNorm P) I

Full source on GitHub

Import NLAlib.Krylov.CG.HSPCG.Rounded.Preconditioner.