mul (alias: "x*y")

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 12:24, 21 April 2011 by 193.171.195.48 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Compute the product of the arguments.

Usage
mul(x, y)
Result
If both arguments x and y are vectors, the tensor (or dyadic) product of the vectors is computed and the result r is a matrix with nrow(x) rows and nrow(y) columns.
ri,j = xi * yj
For all other combinations of data types, the operator * is applied to x and y and the product x*y is returned. If the multiplication is not possible (invalid combination of data types), the function fails.
See also
trn, inv, ctrn, cmulv

<function list>

Navigation menu

Personal tools