NLA-lib Explorer

NLAlib.Krylov.CG.HSPCG.Rounded.staticPeak_initialize

Library · theorem

No allocation occurs in initialization; only the declared primitive workspaces contribute.

NLAlib.Krylov.CG.HSPCG.Rounded.staticPeak_initialize {Op Tst : Type} [Ops.Has Ops.Blas1Op Op]
  [Ops.Has (Ops.Tagged Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp) Op] (W : Op → List ℕ → ℕ)
  (n b x x' r z p : ℕ) :
  Ops.stmtPeak W Krylov.CG.HSPCG.Rounded.initializeState [n, b, x, x', r, z, p] =
    max (W (Ops.Has.inj Ops.Blas1Op.copy) [n])
      (W (Ops.Tagged.inj Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp.matvec) [n, n])

Full source on GitHub

Import NLAlib.Krylov.CG.HSPCG.Rounded.Initialization.