Programmer Guide/Command Reference/EVAL/trn: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
Transpose the matrix ''x''. | Transpose the matrix ''x''. | ||
;Usage: '''<code>trn(<var>x</var>)</code>''' | ;Usage: '''<code>trn(<var>x</var>)</code>''' | ||
;<var>x</var>: a matrix | :;<var>x</var>: a matrix | ||
;Result: The result ''r'' is the transposed matrix ''x'' (<code>''r''[i,j] = ''x[j,i]''</code>) | ;Result: The result ''r'' is the transposed matrix ''x'' (<code>''r''[i,j] = ''x[j,i]''</code>) | ||
:Note: If ''x'' is not a matrix, then the result is the same as the argument. | :Note: If ''x'' is not a matrix, then the result is the same as the argument. |
Revision as of 14:33, 8 April 2011
Transpose the matrix x.
- Usage
trn(x)
- x
- a matrix
- Result
- The result r is the transposed matrix x (
r[i,j] = x[j,i]
) - Note: If x is not a matrix, then the result is the same as the argument.