NLA-lib Explorer

NLAlib.Krylov.CG.HSCG.Stored.Certification.countedAlgorithm

Library · def

Uniform model Work: closed

Conjugate gradient on a stored matrix of order n at horizon k runs within 33 n² k + 23 n k + 156 k + 33 n² + 29 n + 125 instructions of the model with unit weights, with the output of algorithm. Products with the matrix are executed by the tree and counted. The program, the model and the hypotheses are those of algorithm.

NLAlib.Krylov.CG.HSCG.Stored.Certification.countedAlgorithm (domain : (Fin 2 → ℕ) → Prop)
  (admitted : ∃ d, domain d)
  (supply : ∀ (d : Fin 2 → ℕ), domain d → ∃ x, Krylov.CG.HSCG.Stored.Certification.accepts d x) :
  Ops.Algorithm
    (Ops.ExactBlas.model (Krylov.CG.HSCG.Stored.Certification.problem domain admitted supply)
      Ops.Standard.Costing.unit)
    (Krylov.CG.HSCG.Stored.Certification.countedSpecification domain admitted supply)

Full source on GitHub

Import NLAlib.Krylov.CG.HSCG.StoredCertification.