Tool to compute the transpose of a matrix. The transpose of a matrix M of size mxn is a matrix denoted ^{t}M of size nxm created by swapping lines and columns.

Transpose of a Matrix - dCode

Tag(s) : Matrix

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!

A suggestion ? a feedback ? a bug ? an idea ? *Write to dCode*!

The transposition of a matrix (or transpose of matrix) is one of the most basic matrix operations to perform. The transpose of a matrix consists of inverting the rows with the columns:

$$ \text{ If } M = \begin{bmatrix} a & c & e \\ b & d & f \end{bmatrix} \text{ Then } M^T = \begin{bmatrix} a & b \\ c & d \\ e & f \end{bmatrix} $$

The lines are read from left to right and are transposed from top to bottom.

__Example:__ $$ M = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \Rightarrow M^t = \begin{bmatrix} 1 & 3 \\ 2 & 4 \end{bmatrix} $$

The transposition of a matrix $ M $ is noted $ M^t $ or $ ^tM $. The transposition operation is then noted with an exponent `T` or `t` (uppercase or lowercase) prefixed or postfixed.

The transposition is valid on both square matrices and rectangular matrices. A transposed row vector is a column vector and vice versa.

Transposing twice a matrix returns it unchanged.

The double transposition is the name given to a cryptographic cipher.

The transpose of a column matrix is a line matrix of the same size and vice versa.

__Example:__ The transpose from $ \begin{bmatrix} a \\ b \end{bmatrix} $ is $ \begin{bmatrix} a & b \end{bmatrix} $

__Example:__ The transpose from $ \begin{bmatrix} a & b \end{bmatrix} $ is $ \begin{bmatrix} a \\ b \end{bmatrix} $

dCode retains ownership of the "Transpose of a Matrix" source code. Except explicit open source licence (indicated Creative Commons / free), the "Transpose of a Matrix" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Transpose of a Matrix" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Transpose of a Matrix" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!

Reminder : dCode is free to use.

The copy-paste of the page "Transpose of a Matrix" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!

Exporting results as a .csv or .txt file is free by clicking on the *export* icon

Cite as source (bibliography):

*Transpose of a Matrix* on dCode.fr [online website], retrieved on 2024-11-11,

transpose,transposition,matrix,square,rectangular,t

https://www.dcode.fr/matrix-transpose

© 2024 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.

Feedback