Worked example

a: 1	2	3
4	5	6
a₁₂ = 2 ⇒ (Aᵀ)₂₁ = 2
a₂₃ = 6 ⇒ (Aᵀ)₃₂ = 6

→ [[1,4],[2,5],[3,6]]

Method and scope

Transpose exchanges rows and columns, including rectangular matrices. An m×n input becomes n×m. Applying transpose twice restores the original matrix.

(Aᵀ)ᵢⱼ = Aⱼᵢ

Sources