This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / linalg / _linalg / transpose

function

numpy.linalg._linalg:transpose

source: build-install/usr/lib/python3.14/site-packages/numpy/linalg/_linalg.py :258

Signature

def   transpose ( a )

Summary

Transpose each matrix in a stack of matrices.

Extended Summary

Unlike np.transpose, this only swaps the last two axes, rather than all of them

Parameters

a : (...,M,N) array_like

Returns

aT : (...,N,M) ndarray

Aliases

  • numpy.linalg._linalg.transpose