The last matrix operation you need for future chapters is the transpose. This operation is used in Chapter 6 when we discuss the differences between OpenGL and DirectX. The transpose is a simple yet powerful operation. So far, we've used the row and column location to designate a particular entry. The transpose operation simply swaps each entry's row and column. The transpose can be applied to any size matrix, but we'll look at a 3×3 first so that you can quickly spot the pattern.
Transpose for a 3×3 Matrix
The T superscript is the symbol for transpose, so the transpose of matrix A is written as AT.