def span
import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduceimport Base
35# How many digits a row walks for a target cell: every digit of an axis the
36# target reduces (left stride 0), else one.
37def span(+left: Nat, +extent: Nat) -> Nat:
38 match left:
39 case 0n:
40 extent
41 case 1n+less:
42 1n
Uses (1)
Used by (6)
- bendtorch-core@0.1.0.0/src/autograd/reduce:first_span
- bendtorch-core@0.1.0.0/src/autograd/reduce:single_rows
- bendtorch-core@0.1.0.0/src/autograd/reduce_parallel_proof:span_one
- bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof:kept_row
- bendtorch-core@0.1.0.0/src/autograd/reduce_parallel_proof:single_fiber
- …