BIZNIQUE / LINEAR ALGEBRA / 03
Transpose a matrix
Transpose a matrix
Watch rows become columns without changing the underlying entries.
BIZNIQUE / LINEAR ALGEBRA / 03
Watch rows become columns without changing the underlying entries.
THE IDEA
Transposition changes an m-by-n matrix into an n-by-m matrix. The value at row i, column j moves to row j, column i. It is a change in orientation, not an inverse operation.
(Aᵀ)ᵢⱼ = Aⱼᵢ
Transposition reverses product order: (AB)ᵀ = BᵀAᵀ. It does not normally leave AB in the same order.
TRY IT YOURSELF
Transpose [[1, 2, 3], [4, 5, 6]].
The result is [[1, 4], [2, 5], [3, 6]], with three rows and two columns.