NLA-lib Explorer

Catalog: level-1 vector operations

Library · Source module

Catalog: level-1 vector operations

The group NLAlib.Ops.Blas1Op: sum, dot, axpy, nrm2, scal, copy, on contiguous blocks. Each has an error predicate on decoded values (mathematics: NLAlib.Ops.IsSumErr, NLAlib.Ops.IsDotErr, NLAlib.Ops.IsAxpyErr, NLAlib.Ops.IsNrm2Err, NLAlib.Ops.IsScalErr) and a relational contract in operand form (NLAlib.Ops.sumRel, …). The accuracy parameters are one record NLAlib.Ops.Blas1Err; the contract set is NLAlib.Ops.IsBlas1 dec ε ok, where ok n says which vector lengths the contracts cover (all of them for a loop; those within the depth budget for a recursive implementation).

An algorithm states its theorem against IsBlas1 (and IsScalar if it calls scalar operations), never against an implementation.

Main results

* NLAlib.Ops.IsBlas1: the contract set of the level-1 operations. * NLAlib.Ops.IsExactBlas1: the same operations with exact decoded equations. * NLAlib.Ops.IsDotErr.congr, NLAlib.Ops.IsAxpyErr.congr: the error predicates read their vectors only below the length.

Declarations