NLA-lib Explorer

The operation count of scalar reorthogonalized Lanczos

Library · Source module

The operation count of scalar reorthogonalized Lanczos

The scalar-only stored fully reorthogonalized Lanczos program (NLAlib.Krylov.Lanczos.Reorth.Rounded.Stored.Certification.scalarProgram) executes, on a matrix of order n with iteration cap k, at most

33 n² k + 92 n k² + 152 k² + 269 n k + 581 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.Reorth.Rounded.Stored.Certification.countPoly_scalarProgram: the polynomial of the program. * NLAlib.Krylov.Lanczos.Reorth.Rounded.Stored.Certification.scalarCountedAlgorithm: the certificate with this explicit work and span.

Declarations