Matrix Transpose
Transpose a matrix by exchanging row and column indices so every entry moves to its reflected position.
Turn rows into columns
The entry in row i, column j moves to row j, column i. A 2×3 matrix therefore becomes a 3×2 matrix.
[[1, 2, 3], [4, 5, 6]]^TReflect a square matrix
Diagonal entries remain fixed. Off-diagonal entries exchange positions across the main diagonal.
[[1, −2, 3], [4, 0, 5], [−6, 7, 8]]^TTranspose a vector
A row vector becomes a column with the entries in the same order. The indices change, not the values.
[[2, −1, 4]]^TPractice
Practice: problems like this one, made and checked in your browser.
Recap
- Transposition swaps the row and column indices.
- Rectangular dimensions reverse.
- Entries keep their values and their relative order along each original row or column.