我如何转置和"转换"矩阵?

Ste*_*han 4 algorithm matrix

我有这个矩阵:

1 2 3
4 5 6
Run Code Online (Sandbox Code Playgroud)

我转置矩阵:

1 4
2 5
3 6
Run Code Online (Sandbox Code Playgroud)

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

"untranspose" =
1 2 3
4 5 6
Run Code Online (Sandbox Code Playgroud)

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

Kar*_*nek 13

You simply transpose the matrix again.

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