Binary scalar operations with a stored broadcast operand
Library · Source module
Binary scalar operations with a stored broadcast operand
One loop applies a binary operation to a vector and one stored scalar. The vector may be updated exactly in place or copied between disjoint regions of one arena.
Main results
* NLAlib.Ops.scalarBroadcastRoutine, NLAlib.Ops.scalarBroadcastInPlaceRoutine: the loop as a routine [n] (x : n, a : 1) → (y : n), and in place [n] (x : n, a : 1) → (x), on the tree NLAlib.Ops.scalarBroadcast. * NLAlib.Ops.scalarBroadcastRoutine_meets, NLAlib.Ops.scalarBroadcastInPlaceRoutine_meets: their judgments. * NLAlib.Ops.scalarBroadcast_writes: the common proof of the two, for either layout.