Transpose a square matrix inplace.
auto m1 = Mat2.fromRows(1, 2, 3, 4); transpose(m1); assert(m1 == Mat2.fromRows(1, 3, 2, 4));
See Implementation
Transpose a square matrix inplace.