The operation count of scalar conjugate gradient
Library · Source module
The operation count of scalar conjugate gradient
The scalar-only stored conjugate gradient program (NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.scalarProgram) executes, on a matrix of order n with iteration cap k, at most
33 n² k + 157 n k + 242 k + 50 n + 127
instructions: scalar operations, comparisons, and every structural instruction (index arithmetic, operand addressing, loop rounds, allocation). Every weight of the scalar model is one, so this is its work. The polynomial is computed from the fixed instrumented tree (NLAlib.Ops.Program.countPoly) and checked by the kernel; it is an upper bound, in which a branch counts both sides.
Main results
* NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.countPoly_scalarProgram: the polynomial of the program. * NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.scalarCountedAlgorithm: the certificate with this explicit work and span.
Declarations
- NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.countPoly_scalarProgram
- NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.eval_countPoly_scalarProgram
- NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.operationCount
- NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.scalarCountedAlgorithm
- NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stored.Certification.scalarCountedSpecification