Matrix Transposition

Learn how to transpose matrices using R, Rcpp, Armadillo, and Eigen.

Matrix transposition 𝐴𝑇𝐴^𝑇 transforms the original matrix rows into columns so that a (π‘šΓ—π‘›)(π‘š \times 𝑛) matrix is transposed into (π‘›Γ—π‘š)(𝑛 \times π‘š), like so:

π‘Žπ‘–π‘—π‘‡=π‘Žπ‘—π‘–π‘Ž^𝑇_{𝑖𝑗} = π‘Ž_{𝑗𝑖}

Get hands-on with 1400+ tech skills courses.