MCPcopy Create free account
hub / github.com/numpy/numpy / _indices

Function _indices

numpy/_core/tests/test_mem_overlap.py:46–50  ·  view source on GitHub ↗

Returns ((axis0_src, axis0_dst), (axis1_src, axis1_dst), ... ) index pairs.

(ndims)

Source from the content-addressed store, hash-verified

44
45
46def _indices(ndims):
47 """Returns ((axis0_src, axis0_dst), (axis1_src, axis1_dst), ... ) index pairs."""
48
49 ind = _indices_for_axis()
50 return itertools.product(ind, repeat=ndims)
51
52
53def _check_assignment(srcidx, dstidx):

Callers 1

Calls 1

_indices_for_axisFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…