def gather_channels

stelliferous@0.0.2.0 · kernel_gather.bend:20

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

20def gather_channels(remaining: Nat,+channel: U32,+width: U32,+offset: U32,+output_positions: U32,+span: U32,
21  owners: Array<F32> & Array<F32>) -> Array<F32> & Array<F32>:
22  match remaining:
23    case 0n: owners
24    case 1n+rest:
25      gather_channels(rest,(channel + 1 : U32),width,offset,output_positions,span,
26        gather_channel(channel,width,offset,output_positions,span,owners))

Uses (7)

Used by (3)