def right_index

bendtorch-core@0.1.0.0 · src/tensor/contracts/binary_build_proof.bend:28

import bendtorch-core@0.1.0.0/src/tensor/contracts/binary_build_proof.bend as BinaryBuildProof
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

28def right_index(+plan: Shape.BroadcastPlan, +position: Nat) -> U32:
29  U32.from_nat(Elementwise.right_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 (5)