NLA-lib Explorer

Example: the dot product over scalar arithmetic

Library · Source module

Example: the dot product over scalar arithmetic

Main results

* Mathematics (NLAlib.Ops.Examples.abs_dec_dotF_sub_le): the recursive summation of rounded products, as a function NLAlib.Ops.Examples.dotF of a machine, has the error (1 + u) ^ (2 n) - 1 relative to the sum of the absolute values of the products. No program. * Program logic (NLAlib.Ops.Examples.dotLoop_wp): the accumulation loop NLAlib.Ops.Examples.dotLoop computes dotF in the cell z, with a scratch cell on top of the store. It is stated for arbitrary operands whose offsets may depend on the loop variable, so that the matrix product reuses it. * Exact satisfaction (NLAlib.Ops.Examples.dot_satisfies): the run of the implementation NLAlib.Ops.Examples.dotImpl is the block function NLAlib.Ops.Examples.dotFn.

Declarations