This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / 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