Description Usage Arguments Details Value Author(s) See Also Examples
Same as dot but handle single row matrix differently by multiplying each value but not sum them up
1 | dot.ext(x, y, mydim)
|
x |
numeric vector or matrix |
y |
numeric vector or matrix |
mydim |
Elementwise product (if 1); otherwise defined by |
Returns the 'dot' or 'scalar' product of vectors or columns of matrices. Two vectors must be of same length, two matrices must be of the same size. If x and y are column or row vectors, their dot product will be computed IF mydim is 1 (only difference from dot
).
A scalar or vector of length the number of columns of x and y.
Yue Li
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.