MCPcopy Index your code
hub / github.com/dask/dask / transpose

Function transpose

dask/array/routines.py:185–194  ·  view source on GitHub ↗
(a, axes=None)

Source from the content-addressed store, hash-verified

183
184@derived_from(np)
185def transpose(a, axes=None):
186 if axes:
187 if len(axes) != a.ndim:
188 raise ValueError("axes don't match array")
189 axes = tuple(d + a.ndim if d < 0 else d for d in axes)
190 else:
191 axes = tuple(range(a.ndim))[::-1]
192 return blockwise(
193 np.transpose, axes, a, tuple(range(a.ndim)), dtype=a.dtype, axes=axes
194 )
195
196
197def flip(m, axis=None):

Callers 2

transposeMethod · 0.90
rot90Function · 0.85

Calls 1

blockwiseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…