Matrix Crossproduct
Usage
crossprod(x, y=x)
Description
Given matrices
x
and
y
as arguments,
t
returns their matrix cross-product. This is formally equivalent to, but faster than, the call
t(x) %*% y
.
See Also
outer
Examples
crossprod(1:4)# = sum(1 + 2^2 + 3^2 + 4^2)
[Package Contents]