The operation count of scalar Lanczos
Library · Source module
The operation count of scalar Lanczos
The scalar-only stored Lanczos program (NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.scalarProgram) executes, on a matrix of order n with iteration cap k, at most
33 n² k + 153 n k + 302 k + 58 n + 179
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.Lanczos.Rounded.Stored.Certification.countPoly_scalarProgram: the polynomial of the program. * NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.scalarCountedAlgorithm: the certificate with this explicit work and span.
Declarations
- NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.countPoly_scalarProgram
- NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.eval_countPoly_scalarProgram
- NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.operationCount
- NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.scalarCountedAlgorithm
- NLAlib.Krylov.Lanczos.Rounded.Stored.Certification.scalarCountedSpecification