{ } Raw JSON

bundles / numpy 2.4.4 / numpy / linalg / _linalg / transpose

function

numpy.linalg._linalg:transpose

source: /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