Returns (src, dst) pairs of indices.
()
| 35 | |
| 36 | |
| 37 | def _indices_for_axis(): |
| 38 | """Returns (src, dst) pairs of indices.""" |
| 39 | |
| 40 | res = [] |
| 41 | for nelems in (0, 2, 3): |
| 42 | ind = _indices_for_nelems(nelems) |
| 43 | res.extend(itertools.product(ind, ind)) # all assignments of size "nelems" |
| 44 | |
| 45 | return res |
| 46 | |
| 47 | |
| 48 | def _indices(ndims): |
no test coverage detected