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 / matrixlib / defmatrix / matrix / T

function

numpy.matrixlib.defmatrix:matrix.T

source: build-install/usr/lib/python3.14/site-packages/numpy/matrixlib/defmatrix.py:942

Signature

def T(self)

Summary

Returns the transpose of the matrix.

Extended Summary

Does not conjugate! For the complex conjugate transpose, use .H.

Parameters

None

Returns

ret : matrix object

The (non-conjugated) transpose of the matrix.

Examples

m = np.matrix('[1, 2; 3, 4]')
m
m.getT()
✓
matrix([[1, 3],
        [2, 4]])

See also

getH
transpose

Aliases

  • numpy.matrix.getT