Algorithms
The following briefly summarizes the published algorithms to perform in-place matrix transposition. Source code implementing some of these algorithms can be found in the references, below.
Read more about this topic: In-place Matrix Transposition