def natural_left_owner
bendtorch-core@0.1.0.0 · src/tensor/elementwise_PROOF.bend:317
import bendtorch-core@0.1.0.0/src/tensor/elementwise_PROOF.bend as ElementwisePROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
317def natural_left_owner(-shape: Shape.Shape, -cursor: Nat, result: Elementwise.NaturalStep<shape, cursor>) -> Core.Dynamic:
318 match result:
319 case Elementwise.NaturalStop{left, right, error}:
320 left
321 case Elementwise.NaturalContinue{state, index, exact}:
322 step_left_owner(shape, Elementwise.Continue{state})