def left_at

bendtorch-core@0.1.0.0 · src/tensor/elementwise_parallel_proof.bend:97

import bendtorch-core@0.1.0.0/src/tensor/elementwise_parallel_proof.bend as ElementwiseParallelProof
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise

97# The input cells a build reads for output cell `position`.
98def left_at(+plan: Shape.BroadcastPlan, +position: Nat) -> U32:
99  U32.from_nat(Elementwise.left_walk(Shape.extents(Shape.left_shape(plan)), Shape.extents(Shape.right_shape(plan)), Shape.extents(Shape.output_shape(plan)), Shape.index_map(plan), position))

Uses (10)

Used by (3)