Generate all possible tuples of indices.
(shape)
| 334 | return _fa(items, shape) |
| 335 | |
| 336 | def indices(shape): |
| 337 | """Generate all possible tuples of indices.""" |
| 338 | iterables = [range(v) for v in shape] |
| 339 | return product(*iterables) |
| 340 | |
| 341 | def getindex(ndim, ind, strides): |
| 342 | """Convert multi-dimensional index to the position in the flat list.""" |
no outgoing calls
no test coverage detected
searching dependent graphs…