NLA-lib Explorer

The operation count of scalar preconditioned conjugate gradient

Library · Source module

The operation count of scalar preconditioned conjugate gradient

The scalar-only stored preconditioned conjugate gradient program (NLAlib.Krylov.CG.HSPCG.Rounded.Stored.Certification.program) executes, on a matrix of order n with iteration cap k, at most

66 n² k + 33 n² + 228 n k + 390 k + 73 n + 181

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.HSPCG.Rounded.Stored.Certification.countPoly_program: the polynomial of the program. * NLAlib.Krylov.CG.HSPCG.Rounded.Stored.Certification.countedAlgorithm: the certificate with this explicit work and span.

Declarations