MCPcopy Index your code
hub / github.com/numpy/numpy / reshape_arr

Function reshape_arr

numpy/lib/_function_base_impl.py:3875–3879  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

3873 nkeep = len(keep)
3874
3875 def reshape_arr(a):
3876 # move axis that should not be reduced to front
3877 a = np.moveaxis(a, keep, range(nkeep))
3878 # merge reduced axis
3879 return a.reshape(a.shape[:nkeep] + (-1,))
3880
3881 a = reshape_arr(a)
3882

Callers 1

_ureduceFunction · 0.85

Calls 1

reshapeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…