def cell
import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduceimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
165# One target cell: its fiber sum from +0.0 when the cell is below `count`,
166# else +0.0.
167def cell(+rows: List<&2, Shape.Row>, +extents: List<&2, Nat>, +position: Nat, array: Array<F32>, inside: Bool) ->
168 F32 & Array<F32>:
169 match inside:
170 case False{}:
171 (0.0, array)
172 case True{}:
173 fiber_of(rows, extents, position, array)