For an matrix , we define the transpose as an matrix , where the elements in the rows and columns are swapped. For vectors, the transpose simply switches its type between a row and column vector (to the one it is not).

If , then is symmetric.

In MATLAB, we can use transpose(A). In NumPy, we use np.transpose(A).

Properties