NLA-lib Explorer

Profiles: the level-1 operations by sequential and by pairwise summation

Library · Source module

Profiles: the level-1 operations by sequential and by pairwise summation

Three tables of a signature over itself, each implementing some operations and keeping the rest:

Main results

* NLAlib.Ops.Blas.level1: dot, nrm2 over sum; axpy, scal, copy as loops; * NLAlib.Ops.Blas.sumSeq: sum by sequential summation; * NLAlib.Ops.Blas.sumPairwise: sum by pairwise summation, one level of the recursion.

Two profiles, by stacking:

* NLAlib.Ops.Blas.seq = level1 over sumSeq, with dot error (1 + u) ^ n - 1; * NLAlib.Ops.Blas.pairwise k = level1 over the k-fold iterate of sumPairwise, with dot error (1 + u) ^ (⌈log₂ n⌉ + 1) - 1 for the lengths n with ⌈log₂ n⌉ < k.

Each has one certificate (NLAlib.Ops.Blas.seq_certifies, NLAlib.Ops.Blas.pairwise_certifies) over the standard model of scalar arithmetic, assembled one line per operation from the certificates of the implementations; the accounting certificates are evaluations of static costs.

Declarations