bundles / numpy 2.4.4 / numpy / matrixlib / defmatrix / matrix / T
function
numpy.matrixlib.defmatrix:matrix.T
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 objectThe (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