def cell
bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:348
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
348def cell(+operation: Operation, -le: List<&2, Nat>, -re: List<&2, Nat>, -oe: List<&2, Nat>,
349 +map: Shape.Index<le, re, oe>, +position: Nat, la: Array<F32>, ra: Array<F32>, inside: Bool) ->
350 F32 & (Array<F32> & Array<F32>):
351 match inside:
352 case False{}:
353 (0.0, (la, ra))
354 case True{}:
355 cell_left(operation, ra, U32.from_nat(right_walk(le, re, oe, map, position)),
356 Array.get(F32, la, U32.from_nat(left_walk(le, re, oe, map, position))))