Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I transpose and "untranspose" a matrix?

I have this matrix:

1 2 3
4 5 6

and I transpose the matrix:

1 4
2 5
3 6

How can I get the original matrix back, after the transpose?

"untranspose" =
1 2 3
4 5 6

I am making a simple cryptographic algorithm in Java and need that to solve that problem.

like image 593
Stefhan Avatar asked Dec 09 '22 13:12

Stefhan


2 Answers

You simply transpose the matrix again.

Description of the transposition operation properties: http://en.wikipedia.org/wiki/Transpose#Properties

like image 154
Karel Petranek Avatar answered Dec 13 '22 11:12

Karel Petranek


If some linear algebra review might help, recall that U = (U^t)^t where U is your matrix and t is the symbol for the transpose operation

In short, you just flip the indices again, to get back the original matrix.

and nope... LaTeX does not work on StackOverflow :(

like image 44
ina Avatar answered Dec 13 '22 12:12

ina