Programmer Guide/Command Reference/EVAL/trn: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====trn=====
Transpose the matrix ''x''.
;Usage: '''<code>trn(<var>x</var>)</code>'''
;<var>x</var>: a matrix
;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.


Transpose the matrix <var>x</var>. If <var>x</var> is not a matrix, then the result is the same as the argument.
;See also: [[Programmer_Guide/Command_Reference/EVAL/inv|inv]], [[Programmer_Guide/Command_Reference/EVAL/mul|mul]], [[Programmer_Guide/Command_Reference/EVAL/ctrn|ctrn]]


=====Usage:=====
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
 
<code>trn(<var>x</var>)</code>
 
=====Result:=====
 
The transposed matrix if <var>x</var> is a matrix, else the argument.
 
=====Return Type:=====
 
same as <var>x</var>

Revision as of 14:32, 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.
See also
inv, mul, ctrn

<function list>

Navigation menu

Personal tools