Functional contract of the sequential scalar dot implementation
Library · Source module
Functional contract of the sequential scalar dot implementation
The actual sequential implementation returns one specified word from its input blocks, independently of the surrounding memory and tape. This strengthens its numerical error contract without changing the computation. Repeated dot calls on identical words therefore have identical output, including when other memory or accumulator state has changed.
Main results
* NLAlib.Ops.dotSeqFn: the actual machine's product-and-sequential-sum function. * NLAlib.Ops.isFn_dot_seq: the existing scalar implementation meets that functional contract.