NLA-lib Explorer

Canonical exact fixed-horizon conjugate gradient

Library · Source module

Canonical exact fixed-horizon conjugate gradient

The admitted inputs (inputs) are the positive-definite matrices and right-hand sides whose Krylov grade is at least the horizon; the problem is derived from the routine (NLAlib.Ops.Routine.Domain), so every such system is covered. The matrix is the declared unstored input, reached only through the product operation. The program initializes its iterate, applies the operator, and returns the actual CG state with full canonical resource accounting.

With unit weights (every scalar operation, level-one vector operation and product with the matrix counts one) the work is a closed form computed by the kernel from the tree. That count is at the level of vector operations and matrix products, not a scalar operation count: the model has those as primitives. The last theorem states what the certificate means in terms of the evaluator alone.

Main results

* NLAlib.Krylov.CG.HSCG.Certification.algorithm: total fixed-horizon CG certificate. * NLAlib.Krylov.CG.HSCG.Certification.countedAlgorithm: the same certificate under unit weights, with work at most 6 n + 127 k + 92. * NLAlib.Krylov.CG.HSCG.Certification.cg_checked: what it states, on the evaluator.

Declarations