~/bend-docscommunity

tensor_band.bend checks

raw source on the hub · import stelliferous@0.0.3.0/tensor_band.bend as Tensor_band

Internal H-axis ownership. Offsets and spans are logical image rows, not element positions: offset / height identifies the image. No leaf crosses an image boundary. Its buffer stores [channels][span][width]. The common partition tree owns all buffers; shape and element type remain parameters.

14 imports
import Base
import ./storage_buffer.bend as Storage
import ./storage_copy.bend as Copy
import ./storage_clone.bend as Clone
import ./traversal_partition.bend as Partition
import ./traversal_array.bend as Traversal
import ./proofs/traversal_certificate.bend as TraversalCertificate
import ./tensor_operations.bend as Operations
import ./storage_allocation.bend as Allocation
import ./tensor_view.bend as Views
import ./tensor_shape.bend as Shapes
import ./tensor_indexed.bend as IndexedAccess
import ./proofs/tensor_indexed_certificate.bend as IndexedCertificate
import ./proofs/storage_certificate.bend as Certificate

Types

type Geometry source · line 20 · raw

Data

type Plan source · line 130 · raw

Data

A pure ownership plan contains no Buffer. It is a concrete Data type: duplicating Tree<&2,...> through a computed type makes all constructors shared in the official compiler, including the affine Buffer tree.

type Filling source · line 204 · raw

@-Element:Data -> Data

What a band made from scratch needs: its geometry and the value it starts with.

type Paired source · line 209 · raw

@-Left:Type -> @-Right:Type -> Type

Two trees of one shape, joined leaf by leaf. A left leaf without a partner keeps its own row range, so the left tree can be returned unchanged.

type Division source · line 251 · raw

@-State:Type -> Type

What a split gives its halves: a state for each, or the whole state when it cannot be divided.

type Indexed source · line 356 · raw

Data

type Filled source · line 421 · raw

@-Element:Data -> Data

type Range source · line 459 · raw

Data

The rows a range reads and where it writes them.

type Spread source · line 597 · raw

Data

A source of the extents source read band by band as a tensor of the extents shape under NumPy broadcasting, the bands those of the geometry. Views are built again at every use: a View value used twice would make the compiler share every View constructor.

type Pieces source · line 714 · raw

@-Element:Data -> Data

type Checked source · line 797 · raw

@-Element:Data -> Type

A band made by a checked call, beside whether the call was usable.

type Inspection source · line 842 · raw

Data

Definitions

def elements source · line 61 · raw

@geometry:Geometry -> U32

def local_count source · line 65 · raw

@geometry:Geometry -> @rows:U32 -> U32

def global_index source · line 71 · raw

@geometry:Geometry -> @+first:U32 -> @+rows:U32 -> @+index:U32 -> U32

Channel-major local indices map to the same global NCHW index for every partition. A leaf's first row is global across images; rows are image-local.

def whole_image source · line 108 · raw

@+geometry:Geometry -> @first:U32 -> @rows:U32 -> Bool

A leaf that holds every row of the only image is that image in row-major order.

def split_plan source · line 139 · raw

@left:Plan -> @right:Plan -> Plan

def same_plan source · line 158 · raw

@left:Plan -> @right:Plan -> Bool

def same_geometry source · line 166 · raw

@left:Geometry -> @right:Geometry -> Bool

def image_rows source · line 174 · raw

@shape:List<&2, U32> -> @geometry:Geometry -> Bool

The geometry splits the image rows of an image shape, [channels, height, width] or [batch, channels, height, width]. Operations that read neighbouring rows or whole channels need this layout.

def first source · line 180 · raw

@layout:Plan -> U32

def last source · line 185 · raw

@layout:Plan -> U32

def unshared source · line 243 · raw

@resource:Unit -> Pair(Unit, Unit)

def always source · line 261 · raw

@schedule:Unit -> @layout:Plan -> Bool

Every split may run its halves in parallel.

def in_parallel source · line 315 · raw

@enabled:Bool -> @layout:Plan -> Bool

The planner decides once for an operation: every split of an enabled walk may run its halves in parallel, inside an image or across images.

def index_of source · line 390 · raw

@context:Indexed -> @index:U32 -> U32

def channel_base source · line 396 · raw

@context:Indexed -> @channel:U32 -> U32

Channel c of a leaf holds the positions from c * rows * width; their global indices are consecutive from this base.

def channels_of source · line 400 · raw

@context:Indexed -> U32

def plane_of source · line 404 · raw

@context:Indexed -> U32

def row_plan source · line 538 · raw

@depth:Nat -> @split:Bool -> @+first:U32 -> @+rows:U32 -> Plan

def image_plan source · line 547 · raw

@remaining:Nat -> @+image:U32 -> @+depth:Nat -> @+height:U32 -> Plan

def unsplit source · line 555 · raw

@geometry:Geometry -> Plan

Every image of the geometry as one band, its rows unsplit.

def unit_plan source · line 561 · raw

@depth:Nat -> @+unit:U32 -> @+first:U32 -> @+count:U32 -> Plan

Rows [first, first + count) halved depth times. The first half of every split is a whole number of units.

def spread_geometry source · line 600 · raw

@context:Spread -> Geometry

def stretched_view source · line 604 · raw

@view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @+shape:List<&2, U32> -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def stretched_source source · line 609 · raw

@+source:List<&2, U32> -> @+shape:List<&2, U32> -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def sliced_rows source · line 612 · raw

@view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @+start:U32 -> @rows:U32 -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def sliced_image source · line 617 · raw

@view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @+image:U32 -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def sliced_plane_rows source · line 622 · raw

@view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @+start:U32 -> @rows:U32 -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def rows_view source · line 628 · raw

@+shape:List<&2, U32> -> @+height:U32 -> @+first:U32 -> @rows:U32 -> @view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

The cells of a band of image rows: its image and its rows.

def rows_extents source · line 634 · raw

@+shape:List<&2, U32> -> @rows:U32 -> Maybe<&2, List<&2, U32>>

def band_view_when source · line 640 · raw

@whole:Bool -> @rows_shaped:Bool -> @+shape:List<&2, U32> -> @+height:U32 -> @+first:U32 -> @rows:U32 -> @view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def band_extents_when source · line 646 · raw

@whole:Bool -> @rows_shaped:Bool -> @+shape:List<&2, U32> -> @rows:U32 -> Maybe<&2, List<&2, U32>>

def band_view source · line 655 · raw

@+context:Spread -> @+first:U32 -> @+rows:U32 -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

The view of the source a band reads. A band of a whole image reads the whole stretched view, and a band of image rows of an image shape reads its image and its rows. Other bands have none.

def band_extents source · line 661 · raw

@+context:Spread -> @+first:U32 -> @+rows:U32 -> Maybe<&2, List<&2, U32>>

The extents of the cells of that band, in the order the band stores them.

def has_view source · line 665 · raw

@view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> Bool

def spread_boxed source · line 671 · raw

@+context:Spread -> @layout:Plan -> Bool

Every band of the plan has a view.

def compact_axes source · line 676 · raw

@source:List<&2, U32> -> @axes:List<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.Axis> -> List<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.Axis>

def compact_of source · line 683 · raw

@+source:List<&2, U32> -> @view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

The elements of a band view that the source holds once: an axis the source repeats keeps one element.

def compact_extents source · line 688 · raw

@source:List<&2, U32> -> @extents:List<&2, U32> -> List<&2, U32>

def compact_with source · line 693 · raw

@+source:List<&2, U32> -> @extents:Maybe<&2, List<&2, U32>> -> Maybe<&2, List<&2, U32>>

def band_compact source · line 700 · raw

@+context:Spread -> @+first:U32 -> @+rows:U32 -> Maybe<&2, List<&2, U32>>

The extents of the part of the source a band reads: those of its cells, an axis the source repeats kept once.

def contiguous_of source · line 704 · raw

@extents:Maybe<&2, List<&2, U32>> -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def count_of_extents source · line 709 · raw

@extents:Maybe<&2, List<&2, U32>> -> Maybe<&2, U32>

def source_of source · line 731 · raw

@context:Spread -> List<&2, U32>

def stretched_to source · line 756 · raw

@view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @target:Maybe<&2, List<&2, U32>> -> Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View>

def join_inspection source · line 845 · raw

@left:Inspection -> @right:Inspection -> Inspection

def leaf_inspection source · line 850 · raw

@geometry:Geometry -> @+length:Nat -> @depth:Nat -> @+first:U32 -> @+rows:U32 -> Inspection

def covers source · line 871 · raw

@geometry:Geometry -> @inspection:Inspection -> Bool

Leaves that fit the geometry and cover all of its rows in order.

Templates

template Bands source · line 23 · raw

@-Element:Data -> Type

template walk source · line 28 · raw

@-Input:Type -> @-Output:Type -> @-State:Type -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:Input -> @_:State -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>, State)) -> @+context:Context -> @tree:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Input, Unit> -> @state:State -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>, State)

An existing tree with a state threaded through its leaves in order. The leaf takes the state and gives it back beside what it leaves in the tree.

template fold source · line 40 · raw

@-Input:Type -> @-State:Type -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:Input -> @_:State -> State) -> @+context:Context -> @tree:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Input, Unit> -> @state:State -> State

Every leaf of a tree consumed into a state, in order.

template reduced source · line 46 · raw

@-Output:Type -> @-Value:Type -> @-join:(@_:Value -> @_:Value -> Value) -> @left:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>, Value) -> @right:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>, Value) -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>, Value)

template reduce source · line 53 · raw

@-Input:Type -> @-Output:Type -> @-Value:Type -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:Input -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>, Value)) -> @-join:(@_:Value -> @_:Value -> Value) -> @+context:Context -> @tree:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Input, Unit> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>, Value)

A value from every leaf, joined where the tree forks. The leaf gives its value beside what it leaves in the tree.

template planes source · line 76 · raw

@-Element:Data -> @remaining:Nat -> @+channel:U32 -> @+count:U32 -> @+source_stride:U32 -> @+destination_stride:U32 -> @+source_start:U32 -> @+destination_start:U32 -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

template destination source · line 87 · raw

@-Element:Data -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template gather_leaf source · line 91 · raw

@-Element:Data -> @geometry:Geometry -> @+first:U32 -> @+rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template gather_band source · line 98 · raw

@-Element:Data -> @geometry:Geometry -> @first:U32 -> @rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

One allocation is provided by the caller. Each value is copied once, using one contiguous range per channel per band. No intermediate whole images.

template gather source · line 103 · raw

@-Element:Data -> @+geometry:Geometry -> @bands:Bands(Element) -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template copied_leaf source · line 112 · raw

@-Element:Data -> @+first:U32 -> @+rows:U32 -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> Pair(Bands(Element), Bands(Element))

template copy_band source · line 116 · raw

@-Element:Data -> @context:Unit -> @first:U32 -> @rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(Bands(Element), Bands(Element))

template fork source · line 121 · raw

@-Element:Data -> @left:Bands(Element) -> @right:Bands(Element) -> Bands(Element)

template copy source · line 124 · raw

@-Element:Data -> @bands:Bands(Element) -> Pair(Bands(Element), Bands(Element))

template plan_band source · line 134 · raw

@-Element:Data -> @context:Unit -> @first:U32 -> @rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(Bands(Element), Plan)

template plan source · line 142 · raw

@-Element:Data -> @bands:Bands(Element) -> Pair(Bands(Element), Plan)

template plan_fold source · line 147 · raw

@-Value:Type -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> Value) -> @-join:(@_:Context -> @_:Plan -> @_:Plan -> @_:Value -> @_:Value -> Value) -> @layout:Plan -> @+context:Context -> Value

A value from every leaf of a plan, joined where the plan splits. The join also sees the two halves of the plan.

template plain source · line 155 · raw

@-Value:Type -> @-Context:Data -> @-join:(@_:Value -> @_:Value -> Value) -> @context:Context -> @left:Plan -> @right:Plan -> @first:Value -> @second:Value -> Value

A join that needs neither the context nor the halves of the plan.

template build source · line 192 · raw

@-Output:Type -> @-State:Type -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:State -> Pair(State, 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>)) -> @layout:Plan -> @+context:Context -> @state:State -> Pair(State, 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>)

A tree made from a plan, with a state threaded through the leaves in order. The leaf takes the state and gives it back beside the band it made.

template only source · line 213 · raw

@-Left:Type -> @-Right:Type -> @tree:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Left, Unit> -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Paired<Left, Right>, Unit>

template zip source · line 218 · raw

@-Left:Type -> @-Right:Type -> @left:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Left, Unit> -> @right:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Right, Unit> -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Paired<Left, Right>, Unit>

template left_leaf source · line 226 · raw

@-Left:Type -> @-Right:Type -> @pair:Paired<Left, Right> -> @first:U32 -> @rows:U32 -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Left, Unit>

template left_of source · line 231 · raw

@-Left:Type -> @-Right:Type -> @tree:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Paired<Left, Right>, Unit> -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Left, Unit>

template paired source · line 236 · raw

@-Left:Type -> @-Right:Type -> @-Resource:Type -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:Left -> @_:Right -> @_:Resource -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Left, Unit>) -> @context:Context -> @first:U32 -> @rows:U32 -> @pair:Paired<Left, Right> -> @resource:Resource -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Left, Unit>

template same source · line 246 · raw

@-Block:Type -> @tree:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit> -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit>

template divided source · line 255 · raw

@-State:Type -> @-Result:Type -> @division:Division<State> -> @whole:(@_:State -> Result) -> @halves:(@_:State -> @_:State -> Result) -> Result

template each_part source · line 271 · raw

@-State:Type -> @-Output:Type -> @-Details:Data -> @-Context:Data -> @-Schedule:Data -> @-parallel:(@_:Schedule -> @_:Plan -> Bool) -> @-divide:(@_:Context -> @_:Plan -> @_:Plan -> @_:State -> Division<State>) -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:State -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Details>) -> @-keep:(@_:Context -> @_:Plan -> @_:State -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Details>) -> @layout:Plan -> @mode:Bool -> @+schedule:Schedule -> @+context:Context -> @state:State -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Details>

The one plan recursion. The plan gives every part its rows and decides the structure. divide gives each half of a split its own state; a state it keeps whole becomes one part through keep. A split whose schedule allows it runs its halves in parallel. The last split calls its two leaves directly: a leaf that neither forks nor calls a closure is then its own task, which the runtime keeps for the work turn; a leaf reached through the forking recursion would run in the grow turn on one worker per row.

template Banded source · line 310 · raw

@-Block:Type -> @-Resource:Type -> Type

A band walk carries the tree beside the resource. A split divides the tree where it forks; a tree of another shape is kept.

template shared_halves source · line 318 · raw

@-Block:Type -> @-Resource:Type -> @left:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit> -> @right:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit> -> @resources:Pair(Resource, Resource) -> Division<Banded(Block, Resource)>

template band_divide source · line 322 · raw

@-Block:Type -> @-Resource:Type -> @-Context:Data -> @-share:(@_:Resource -> Pair(Resource, Resource)) -> @context:Context -> @left:Plan -> @right:Plan -> @state:Banded(Block, Resource) -> Division<Banded(Block, Resource)>

template band_leaf source · line 329 · raw

@-Block:Type -> @-Output:Type -> @-Resource:Type -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:Block -> @_:Resource -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>) -> @-keep:(@_:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit> -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>) -> @context:Context -> @first:U32 -> @rows:U32 -> @state:Banded(Block, Resource) -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>

template band_kept source · line 338 · raw

@-Block:Type -> @-Output:Type -> @-Resource:Type -> @-Context:Data -> @-keep:(@_:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit> -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>) -> @context:Context -> @layout:Plan -> @state:Banded(Block, Resource) -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>

template each source · line 346 · raw

@-Block:Type -> @-Output:Type -> @-Resource:Type -> @-Context:Data -> @-share:(@_:Resource -> Pair(Resource, Resource)) -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:Block -> @_:Resource -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>) -> @-keep:(@_:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit> -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>) -> @layout:Plan -> @+enabled:Bool -> @+context:Context -> @tree:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Block, Unit> -> @resource:Resource -> 0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Output, Unit>

The band recursion. share gives each half its own owner of a read-only resource.

template map_leaf source · line 359 · raw

@-Element:Data -> @-Context:Data -> @-operation:(@_:Context -> @_:Element -> Element) -> @+context:Context -> @buffer:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template map_whole_context source · line 365 · raw

@-Element:Data -> @-Context:Data -> @-mapper:(@+count:Nat -> @+position:U32 -> @+context:Context -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> @+context:Context -> @buffer:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

A mapper over the whole of one band.

template map_band source · line 369 · raw

@-Element:Data -> @-Context:Data -> @-leaf:(@+context:Context -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> @context:Context -> @first:U32 -> @rows:U32 -> @buffer:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @resource:Unit -> Bands(Element)

template map_with source · line 375 · raw

@-Element:Data -> @-Context:Data -> @-leaf:(@+context:Context -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> @+layout:Plan -> @+parallel:Bool -> @context:Context -> @bands:Bands(Element) -> Bands(Element)

Parallelism is a planner decision. Sequential execution keeps the bands and their owners: a small operation need not pay either a fork or a gather.

template scalar_value source · line 380 · raw

@-Element:Data -> @-operation:(@_:Element -> @_:Element -> Element) -> @value:Element -> @element:Element -> Element

template scalar source · line 383 · raw

@-Element:Data -> @-operation:(@_:Element -> @_:Element -> Element) -> @layout:Plan -> @parallel:Bool -> @value:Element -> @bands:Bands(Element) -> Bands(Element)

template result source · line 386 · raw

@-Element:Data -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element)) -> Bands(Element)

template indexed_buffers source · line 408 · raw

@-Element:Data -> @-operation:(@_:U32 -> @_:Element -> Element) -> @+count:U32 -> @+context:Indexed -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template indexed_leaf source · line 415 · raw

@-Element:Data -> @-operation:(@_:U32 -> @_:Element -> Element) -> @+geometry:Geometry -> @+first:U32 -> @+rows:U32 -> @fill:Element -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template indexed_band source · line 424 · raw

@-Element:Data -> @-operation:(@_:U32 -> @_:Element -> Element) -> @context:Filled<Element> -> @first:U32 -> @rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @resource:Unit -> Bands(Element)

template apply_indexed source · line 431 · raw

@-Element:Data -> @-operation:(@_:U32 -> @_:Element -> Element) -> @+layout:Plan -> @+parallel:Bool -> @+geometry:Geometry -> @fill:Element -> @bands:Bands(Element) -> Bands(Element)

template range_result source · line 436 · raw

@-Element:Data -> @+first:U32 -> @+rows:U32 -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> Pair(Bands(Element), 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

template range_planes source · line 441 · raw

@-Element:Data -> @empty:Bool -> @+channels:U32 -> @+count:U32 -> @+source_stride:U32 -> @+destination_stride:U32 -> @+source_start:U32 -> @+destination_start:U32 -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

An empty intersection copies nothing, so it skips the per-channel loop.

template range_leaf source · line 450 · raw

@-Element:Data -> @geometry:Geometry -> @+target_first:U32 -> @+target_rows:U32 -> @target_offset:U32 -> @+first:U32 -> @+rows:U32 -> @source:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(Bands(Element), 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

Repartition and halo extraction share this owned range reader. Empty intersections copy zero elements; each source owner is returned unchanged.

template range_band source · line 462 · raw

@-Element:Data -> @context:Range -> @first:U32 -> @rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(Bands(Element), 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

template range_into source · line 468 · raw

@-Element:Data -> @+geometry:Geometry -> @+first:U32 -> @+rows:U32 -> @+target_offset:U32 -> @bands:Bands(Element) -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(Bands(Element), 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

template range source · line 471 · raw

@-Element:Data -> @geometry:Geometry -> @first:U32 -> @rows:U32 -> @bands:Bands(Element) -> @output:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(Bands(Element), 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

template allocate source · line 474 · raw

@-Element:Data -> @fill:Element -> @+count:U32 -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template repartition_band source · line 477 · raw

@-Element:Data -> @context:Filling<Element> -> @first:U32 -> @rows:U32 -> @bands:Bands(Element) -> Pair(Bands(Element), Bands(Element))

template repartition source · line 485 · raw

@-Element:Data -> @geometry:Geometry -> @fill:Element -> @layout:Plan -> @bands:Bands(Element) -> Pair(Bands(Element), Bands(Element))

template repartitioned source · line 488 · raw

@-Element:Data -> @owners:Pair(Bands(Element), Bands(Element)) -> Bands(Element)

template align_when source · line 492 · raw

@-Element:Data -> @same:Bool -> @geometry:Geometry -> @fill:Element -> @layout:Plan -> @bands:Bands(Element) -> Bands(Element)

template align_planned source · line 497 · raw

@-Element:Data -> @geometry:Geometry -> @fill:Element -> @+layout:Plan -> @planned:Pair(Bands(Element), Plan) -> Bands(Element)

template align source · line 501 · raw

@-Element:Data -> @geometry:Geometry -> @fill:Element -> @layout:Plan -> @bands:Bands(Element) -> Bands(Element)

template whole_result source · line 504 · raw

@-Element:Data -> @+first:U32 -> @+rows:U32 -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element))

template whole_rows source · line 510 · raw

@-Element:Data -> @geometry:Geometry -> @fill:Element -> @+first:U32 -> @+rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)

Rows [first, first + rows) of every plane of a whole buffer, in a buffer of their own beside the source.

template whole_leaf source · line 515 · raw

@-Element:Data -> @geometry:Geometry -> @fill:Element -> @+first:U32 -> @+rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element))

template whole_band source · line 518 · raw

@-Element:Data -> @context:Filling<Element> -> @first:U32 -> @rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element))

template whole_ranges source · line 522 · raw

@-Element:Data -> @geometry:Geometry -> @fill:Element -> @layout:Plan -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element))

template from_rows source · line 527 · raw

@-Element:Data -> @whole:Bool -> @geometry:Geometry -> @fill:Element -> @+first:U32 -> @+rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Bands(Element)

A leaf that holds every row of the only image is that image in row-major order: the whole buffer is the band, relabelled. Other rows are copied out.

template from_whole source · line 533 · raw

@-Element:Data -> @+geometry:Geometry -> @fill:Element -> @layout:Plan -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Bands(Element)

The bands of a row-major buffer cut by a plan.

template combined source · line 568 · raw

@-Element:Data -> @result:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_operations.Outcome<Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template combine_leaf_with source · line 573 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @+count:U32 -> @left:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @right:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template combine_band_with source · line 576 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @geometry:Geometry -> @first:U32 -> @rows:U32 -> @left:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @right:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @resource:Unit -> Bands(Element)

template combine_planned_with source · line 581 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @+geometry:Geometry -> @+parallel:Bool -> @planned:Pair(Bands(Element), Plan) -> @right:Bands(Element) -> Bands(Element)

template combine_with source · line 590 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @geometry:Geometry -> @parallel:Bool -> @left:Bands(Element) -> @right:Bands(Element) -> Bands(Element)

The caller supplies the same plan on both sides, after shape and status checks; the plan is read from the left. Trees of another shape keep the left owner.

template piece_copied source · line 717 · raw

@-Element:Data -> @+first:U32 -> @+rows:U32 -> @result:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_operations.Outcome<Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element))

template piece_views source · line 724 · raw

@-Element:Data -> @source_view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @piece_view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @count:Maybe<&2, U32> -> @+fill:Element -> @+first:U32 -> @+rows:U32 -> @source:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element))

A band view lies inside the source it was stretched from, so the band copies through it without a check.

template piece_band source · line 735 · raw

@-Element:Data -> @context:Pieces<Element> -> @first:U32 -> @rows:U32 -> @source:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, Bands(Element))

template spread_leaf source · line 742 · raw

@-Element:Data -> @whole:Bool -> @+context:Spread -> @fill:Element -> @+first:U32 -> @+rows:U32 -> @source:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Bands(Element)

template spread source · line 750 · raw

@-Element:Data -> @+context:Spread -> @fill:Element -> @layout:Plan -> @source:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Bands(Element)

The part of a source each band of the plan reads, copied in plan order: the elements of its band view, an axis that repeats one element kept once. One band of a whole image reads all of the source, which it takes as is.

template kernel_left source · line 761 · raw

@-Element:Data -> @owners:Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>) -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

template spread_views source · line 767 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @+count:U32 -> @right_view:Maybe<&2, 0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View> -> @left:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @right:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>

The kernel on a band and its part: the views were checked when the operation chose its layout, so the band runs the kernel itself.

template combine_spread_band_with source · line 775 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @context:Spread -> @first:U32 -> @rows:U32 -> @left:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @right:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @resource:Unit -> Bands(Element)

A band combined with its part of the source: the band read with the extents of its cells, the part stretched to them.

template combine_spread_planned_with source · line 783 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @+context:Spread -> @+parallel:Bool -> @planned:Pair(Bands(Element), Plan) -> @right:Bands(Element) -> Bands(Element)

template combine_spread_with source · line 792 · raw

@-Element:Data -> @-kernel:(@+count:Nat -> @+right_view:0xd6aaab858a4fbd1461bd0fee27b97184/tensor_view.View -> @+offset:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>)) -> @+context:Spread -> @parallel:Bool -> @left:Bands(Element) -> @right:Bands(Element) -> Bands(Element)

The bands combined with the parts spread copies for them from a source.

template Transformed source · line 800 · raw

@-Element:Data -> Type

template transform_band source · line 803 · raw

@-Element:Data -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Transformed(Element)) -> @context:Context -> @first:U32 -> @rows:U32 -> @input:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @resource:Unit -> Transformed(Element)

template untransformed source · line 808 · raw

@-Element:Data -> @bands:Bands(Element) -> Transformed(Element)

A tree the plan does not describe is not transformed.

template checked_band source · line 813 · raw

@-Element:Data -> @context:Unit -> @first:U32 -> @rows:U32 -> @checked:Checked<Element> -> Pair(Bands(Element), Bool)

template transform source · line 819 · raw

@-Element:Data -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Transformed(Element)) -> @+layout:Plan -> @+parallel:Bool -> @context:Context -> @bands:Bands(Element) -> Pair(Bands(Element), Bool)

Every band through its own checked call. The bands come back beside whether every call was usable.

template transform_pair source · line 825 · raw

@-Element:Data -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Transformed(Element)) -> @context:Context -> @first:U32 -> @rows:U32 -> @pair:Paired<0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>> -> @resource:Unit -> Transformed(Element)

template untransformed_pairs source · line 831 · raw

@-Element:Data -> @pairs:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Paired<0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>>, Unit> -> Transformed(Element)

template transform_paired source · line 836 · raw

@-Element:Data -> @-Context:Data -> @-leaf:(@_:Context -> @_:U32 -> @_:U32 -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @_:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Transformed(Element)) -> @+layout:Plan -> @+parallel:Bool -> @context:Context -> @pairs:0xd6aaab858a4fbd1461bd0fee27b97184/traversal_partition.Tree<&1, Paired<0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>, 0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element>>, Unit> -> Pair(Bands(Element), Bool)

Every band of the left through its own checked call with the band of the right of the same rows; a left band without a partner is not usable.

template inspect_leaf source · line 857 · raw

@-Element:Data -> @geometry:Geometry -> @buffer:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> @+first:U32 -> @+rows:U32 -> Pair(Bands(Element), Inspection)

template inspect_band source · line 862 · raw

@-Element:Data -> @geometry:Geometry -> @first:U32 -> @rows:U32 -> @buffer:0xd6aaab858a4fbd1461bd0fee27b97184/storage_buffer.Buffer<Element> -> Pair(Bands(Element), Inspection)

template inspect source · line 867 · raw

@-Element:Data -> @+geometry:Geometry -> @bands:Bands(Element) -> Pair(Bands(Element), Inspection)