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
- NLAlib.Ops.Examples.DisjointBufs
- NLAlib.Ops.Examples.IsArith
- NLAlib.Ops.Examples.abs_dec_dotF_sub_le
- NLAlib.Ops.Examples.dotF
- NLAlib.Ops.Examples.dotF_succ
- NLAlib.Ops.Examples.dotFn
- NLAlib.Ops.Examples.dotFn_apply
- NLAlib.Ops.Examples.dotImpl
- NLAlib.Ops.Examples.dotLoop
- NLAlib.Ops.Examples.dotLoop_wp
- NLAlib.Ops.Examples.dot_satisfies
- NLAlib.Ops.Examples.exists_isArith