Dot | R Documentation |
'dot' or 'scalar' product of vectors or pairwise columns of matrices.
Dot(x, y)
x |
numeric vector or matrix |
y |
numeric vector or matrix |
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 as if they were simple vectors.
A scalar or vector of length the number of columns of x
and
y
.
Hans W. Borchers <hwborchers@googlemail.com>
Cross
Dot(1:5, 1:5) #=> 55
# Length of space diagonal in 3-dim- cube:
sqrt(Dot(c(1,1,1), c(1,1,1))) #=> 1.732051
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.