def natural_right_owner
bendtorch-core@0.1.0.0 · src/tensor/elementwise_PROOF.bend:324
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
324def natural_right_owner(-shape: Shape.Shape, -cursor: Nat, result: Elementwise.NaturalStep<shape, cursor>) -> Core.Dynamic:
325 match result:
326 case Elementwise.NaturalStop{left, right, error}:
327 right
328 case Elementwise.NaturalContinue{state, index, exact}:
329 step_right_owner(shape, Elementwise.Continue{state})