...

/

Matrix Transposition

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:

𝑎𝑖𝑗𝑇=𝑎𝑗𝑖𝑎^𝑇_{𝑖𝑗} = 𝑎_{𝑗𝑖} ...