numpy.linalg.matrix_transpose
- linalg.matrix_transpose(x, /)
Transposes a matrix (or a stack of matrices)
x.This function is Array API compatible.
- Parameters:
- x : array_like
Input array having shape (…, M, N) and whose two innermost dimensions form
MxNmatrices.