def gather

stelliferous@0.0.2.0 · traversal_lanes.bend:47

import stelliferous@0.0.2.0/traversal_lanes.bend as TraversalLanes
import Base
import stelliferous@0.0.2.0/kernel_tile.bend as Tile

47# The mapped values at position, position + 1, ... as one tile; the array is only read.
48def gather(~Context: Data,~map: Context -> F32 -> F32,values: Array<F32>,position: U32,context: Context) -> Array<F32> & Tile.Tile8:
49  +position = position
50  gather1(~Context,~map,position,context,Array.get(F32,values,position))

Uses (7)

Used by (12)