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

Function _indices_for_axis

numpy/core/tests/test_mem_overlap.py:37–45  ·  view source on GitHub ↗

Returns (src, dst) pairs of indices.

()

Source from the content-addressed store, hash-verified

35
36
37def _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
48def _indices(ndims):

Callers 1

_indicesFunction · 0.85

Calls 1

_indices_for_nelemsFunction · 0.85

Tested by

no test coverage detected