TRN

Member Of Menu: 
Array
Argument Types: 
Symbol
Array
Result Type(s): 
None
Array
Invertible: 
No
Valid In Expression: 
No
Stack Diagram: 
Array1 Array2
Symbol1

This operation returns the transpose of its input array. The input array can be directly on the stack in which case the result is pushed onto the stack or it can be a symbol. If it is a symbol, the value of that symbol must be an array. No value is pushed onto the stack in this case and the value of the symbol is transposed.

Transpose cannot be performed on a vector. A transpose on a real matrix of N rows and M columns returns a real matrix of M rows and N columns. Item at row X, column Y appears at row Y column X in the resulting matrix.

For complex matrices, the same swapping of rows and columns occurs but each value is also set to its conjugate.