StorageCopy.range: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/storage_copy.bend as StorageCopy Lines 10-17 of stelliferous@0.0.2.0/storage_copy.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/storage_copy.bend&start_line=10&end_line=17 import Base import stelliferous@0.0.2.0/storage_buffer.bend as Storage import stelliferous@0.0.2.0/tensor_view.bend as Views import stelliferous@0.0.2.0/tensor_access.bend as Access import stelliferous@0.0.2.0/tensor_operations.bend as Operations import stelliferous@0.0.2.0/proofs/tensor_access_certificate.bend as AccessCertificate def range(~Element: Data,+count: U32,+source: U32,+destination: U32,input: Storage.Buffer,output: Storage.Buffer) -> Storage.Buffer & Storage.Buffer: Storage.Buffer{input,input_length,input_certificate} = input Storage.Buffer{output,output_length,output_certificate} = output +view = {Views.View{[Views.Axis{count,1}],source} : Views.View} Operations.pair_buffers(~Element,input_length,output_length, Access.copy_run(~Element,True{},U32.to_nat(count),view,destination,input,output), AccessCertificate.copy(~Element,True{},U32.to_nat(count),view,destination,input,output,input_certificate,output_certificate)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/tensor_access_certificate.bend&name=copy https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/storage_buffer.bend&name=Buffer https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_access.bend&name=copy_run https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_operations.bend&name=pair_buffers https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_view.bend&name=Axis https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_view.bend&name=View