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

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 11: Line 11:
;Note: This function can be used as alias for the [[Programmer_Guide/Command_Reference/EVAL#Operators|operator *]], which do not implement the dyadic product. both arguments ''x'' and ''y'' are vectors, the dyadic product is computed, otherwise the [[Programmer_Guide/Command_Reference/EVAL#Operators|operator *]] is applied to ''x'' and ''y''.
;Note: This function can be used as alias for the [[Programmer_Guide/Command_Reference/EVAL#Operators|operator *]], which do not implement the dyadic product. both arguments ''x'' and ''y'' are vectors, the dyadic product is computed, otherwise the [[Programmer_Guide/Command_Reference/EVAL#Operators|operator *]] is applied to ''x'' and ''y''.


;See also: [[Programmer_Guide/Command_Reference/EVAL/trn|trn]], [[Programmer_Guide/Command_Reference/EVAL/mul|mul]], [[Programmer_Guide/Command_Reference/EVAL/complex arithmetic#special functions|ctrn, cmulv]],  
;See also: [[Programmer_Guide/Command_Reference/EVAL/trn|trn]], [[Programmer_Guide/Command_Reference/EVAL/inv|inv]], [[Programmer_Guide/Command_Reference/EVAL/complex arithmetic#special functions|ctrn, cmulv]],  


[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====mul=====
Calculate the dyadic product of <var>x</var>v and <var>y</var>v.
=====Usage:=====
<code>mul(<var>x</var>v,<var>y</var>v)</code>
=====Return Type:=====
matrix - (nrow(<var>x</var>v) x nrow(<var>y</var>v))
=====Notes:=====
Note that if one of the arguments is not a vector, then <var>x</var> * <var>y</var> is calculated.

Revision as of 14:57, 8 April 2011

Compute the inverse of x.

Usage
inv(xscalar)
inv(xmatrix)
Result
The result has the same type as the argument x and is the inverse of x. The argument x must be a scalar or a square matrix.
Note
This function can be used as alias for the operator *, which do not implement the dyadic product. both arguments x and y are vectors, the dyadic product is computed, otherwise the operator * is applied to x and y.
See also
trn, inv, ctrn, cmulv,

<function list>

Navigation menu

Personal tools