def gather_channel

stelliferous@0.0.2.0 · kernel_gather.bend:14

import stelliferous@0.0.2.0/kernel_gather.bend as KernelGather
import Base
import stelliferous@0.0.2.0/traversal_array.bend as Traversal

14def gather_channel(+channel: U32,+width: U32,+offset: U32,+output_positions: U32,+span: U32,
15  owners: Array<F32> & Array<F32>) -> Array<F32> & Array<F32>:
16  (input_storage,output_storage) = owners
17  Traversal.copy(~F32,U32.to_nat(width),(channel * span : U32),
18    (channel * output_positions + offset : U32),input_storage,output_storage)

Uses (9)

Used by (3)