The routine of the small-eigenvalue solver
Library · Source module
The routine of the small-eigenvalue solver
NLAlib.SmallEig.smallEigRoutine is [n, nq, T] (M : update 2 (n + 1)², q : read nq) → (U : write 2 (n + 1)²): the program NLAlib.SmallEig.smallEigProg at the order n + 1, in Schur mode. It overwrites the matrix by the computed triangular factor and writes the accumulator. It draws from two streams, and the number of tape positions it consumes depends on the data and on the tape, so it declares none.
The specification holds on every tape: the run terminates, writes only the matrix and the accumulator and leaves both stored. The accuracy of the output is a statement in probability (NLAlib.Eigensolvers.SmallEig.Theorems), not a postcondition.
Main definitions
* NLAlib.SmallEig.smallEigRoutine, NLAlib.SmallEig.smallEigSpec.
Main results
* NLAlib.SmallEig.smallEigRoutine_meets: the routine meets its specification.