def map

stelliferous@0.0.2.0 · traversal_lanes.bend:86

import stelliferous@0.0.2.0/traversal_lanes.bend as TraversalLanes
import Base
import stelliferous@0.0.2.0/traversal_cells.bend as Cells
import stelliferous@0.0.2.0/traversal_array.bend as Traversal

86# map over the count values from position, in order: Traversal.map_in_place
87# with the values of each round computed together.
88def map(~Context: Data,~map: Context -> F32 -> F32,count: Nat,position: U32,context: Context,values: Array<F32>) -> Array<F32>:
89  rounds(~Context,~map,count,Cells.State{values,scratch(),position,0,context})

Uses (7)

Used by (4)