def indexed_buffers

stelliferous@0.0.2.0 · tensor_band.bend:260

import stelliferous@0.0.2.0/tensor_band.bend as TensorBand
import Base
import stelliferous@0.0.2.0/storage_buffer.bend as Storage
import stelliferous@0.0.2.0/tensor_operations.bend as Operations
import stelliferous@0.0.2.0/tensor_indexed.bend as IndexedAccess
import stelliferous@0.0.2.0/proofs/tensor_indexed_certificate.bend as IndexedCertificate

260def indexed_buffers(~Element: Data,~operation: U32 -> Element -> Element,+count: U32,+context: Indexed,input: Storage.Buffer<Element>,output: Storage.Buffer<Element>) -> Storage.Buffer<Element>:
261  Storage.Buffer{input,input_length,input_certificate} = input
262  Storage.Buffer{output,output_length,output_certificate} = output
263  destination(~Element,Operations.pair_buffers(~Element,input_length,output_length,
264    IndexedAccess.run_tiled(~Element,~Indexed,~index_of,~channel_base,~channels_of,~plane_of,~operation,count,context,input,output),
265    IndexedCertificate.tiled_certificates(~Element,~Indexed,~index_of,~channel_base,~channels_of,~plane_of,~operation,count,context,input,output,input_certificate,output_certificate)))

Uses (11)

Used by (1)