TensorBandWindow.assembled: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_band_window.bend as TensorBandWindow Lines 83-100 of stelliferous@0.0.2.0/tensor_band_window.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_band_window.bend&start_line=83&end_line=100 import Base import stelliferous@0.0.2.0/tensor_band.bend as Bands import stelliferous@0.0.2.0/storage_buffer.bend as Storage # The window rows of every channel, stored contiguously. A window equal to # the core (for example a 1x1 stride-1 operation) is the core itself; any # other window is the shared range copy of its rows from the upper halo, the # core and the lower halo, one contiguous range per channel per source. The # three copies are direct calls: a leaf task must not reach a closure. def assembled(~Element: Data,exact: Bool,+fill: Element,+geometry: Bands.Geometry,+window: Rows,+core: Rows,+above: Rows,+below: Rows, core_buffer: Storage.Buffer,above_buffer: Storage.Buffer,below_buffer: Storage.Buffer) -> Storage.Buffer: match exact: case True{}: core_buffer case False{}: Rows{+window_first,+window_rows} = window Rows{core_first,core_rows} = core Rows{above_first,above_rows} = above Rows{below_first,below_rows} = below copied_window(~Element,Bands.range_leaf(~Element,geometry,window_first,window_rows,0,below_first,below_rows,below_buffer, copied_window(~Element,Bands.range_leaf(~Element,geometry,window_first,window_rows,0,core_first,core_rows,core_buffer, copied_window(~Element,Bands.range_leaf(~Element,geometry,window_first,window_rows,0,above_first,above_rows,above_buffer, Bands.allocate(~Element,fill,Bands.local_count(geometry,window_rows)))))))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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_band.bend&name=Geometry https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_band.bend&name=allocate https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_band.bend&name=local_count https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_band.bend&name=range_leaf https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_band_window.bend&name=Rows https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_band_window.bend&name=copied_window