Transpose

The transpose of a matrix is the same matrix with its rows and columns swapped. The first column becomes the first row, the second row becomes the second column etc. In this process an n * m matrix becomes an m * n matrix.

For example,