This method returns the transpose matrix. Matrix transpose is an operation that flips a matrix over its diagonal, essentially swapping its rows and columns. This operation changes the orientation of the matrix without altering its data values.
Returns the transpose matrix.