def read

stelliferous@0.0.2.0 · tensor_lanes.bend:23

import stelliferous@0.0.2.0/tensor_lanes.bend as TensorLanes
import Base
import stelliferous@0.0.2.0/storage_buffer.bend as Storage
import stelliferous@0.0.2.0/traversal_lanes.bend as Lanes
import stelliferous@0.0.2.0/kernel_tile.bend as Tile
import stelliferous@0.0.2.0/proofs/traversal_lanes_certificate.bend as LanesCertificate

23def read(buffer: Storage.Buffer<F32>,+position: U32) -> Storage.Buffer<F32> & Tile.Tile8:
24  Storage.Buffer{values,length,certificate} = buffer
25  read_result(length,Lanes.gather(~Unit,~identity,values,position,Unit{}),LanesCertificate.gather(~Unit,~identity,values,position,Unit{},certificate))

Uses (10)

Used by (2)