def map
import stelliferous@0.0.2.0/kernel_rows.bend as KernelRowsimport Base
38def map(~Element: Data,~Input: Data,~Weight: Data,
39 ~update: Element -> Input -> Weight -> Element,
40 accumulators: Rows<Element>,+input: Input,weights: Rows<Weight>) -> Rows<Element>:
41 Rows{a0,a1,a2,a3} = accumulators
42 Rows{w0,w1,w2,w3} = weights
43 Rows{update(a0,input,w0),update(a1,input,w1),update(a2,input,w2),update(a3,input,w3)}