Given matrix of shape stored in row-major order, produce matrix of shape such that
The output is also stored in row-major order.
Input
A- input matrix of shape[m][n]stored in row-major order.m- the number of rows inA.n- the number of columns inA.
Output
B- transposed matrix of shape[n][m]stored in row-major order.