| crossprod {spam} | R Documentation |
Given matrices x and y as arguments, return a matrix
cross-product. This is formally equivalent to (but usually
slightly faster than) the call t(x) %*% y (crossprod.spam) or x
%*% t(y) (tcrossprod.spam).
crossprod.spam(x, y = NULL)
tcrossprod.spam(x, y = NULL)
x, y |
matrices: |
A double matrix
When x or y are not matrices, they are treated as column or
row matrices.
Reinhard Furrer
crossprod.spam(diag.spam(2),1:2)