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

Function _indices

numpy/core/tests/test_mem_overlap.py:48–52  ·  view source on GitHub ↗

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

(ndims)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

_indices_for_axisFunction · 0.85

Tested by

no test coverage detected