NLA-lib Explorer

axpy, scal and copy as loops over scalar arithmetic

Library · Source module

axpy, scal and copy as loops over scalar arithmetic

Three elementwise loops, each a routine. The judgment of axpy and scal states the words the loop writes for any machine (NLAlib.Ops.axpyF, NLAlib.Ops.scalF); each error model reads its bound off those words by weakening the specification. The judgment of copy states the copied block directly. The invariant of each loop is a frame: the cells written so far hold a prefix of the result and the rest of the store is untouched.

Main results

* NLAlib.Ops.axpyLoopRoutine_meets_exact, NLAlib.Ops.scalLoopRoutine_meets_exact: the words written, for any machine. * NLAlib.Ops.axpyLoopRoutine_meets, NLAlib.Ops.scalLoopRoutine_meets, NLAlib.Ops.copyLoopRoutine_meets: the judgments under the standard model. * NLAlib.Ops.isAxpyErr_axpyF, NLAlib.Ops.isScalErr_scalF: the error bounds, (1 + u) ^ 2 - 1 and u.

Declarations