NLA-lib Explorer

Scalar maps over stored vectors

Library · Source module

Scalar maps over stored vectors

Unary and binary scalar operations applied independently to vectors are counted loops. Their proofs use only the scalar block functions, so arithmetic and conversion kernels reuse the same memory argument, including exact in-place aliases.

Main results

* NLAlib.Ops.unaryMap and NLAlib.Ops.binaryMap implement pointwise scalar maps. * NLAlib.Ops.binaryMap_writes permits exact aliases or disjoint input/output views. * NLAlib.Ops.unaryMap_wp_of_disj_or_eq permits disjoint regions of the same arena buffer. * NLAlib.Ops.unaryMap_wp identifies the complete updated memory for distinct buffers or exactly in-place operands, from the operation's functional contract.

Declarations