| crossprod | 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) or
x %*% t(y) (tcrossprod).
## S4 method for signature 'fm,ANY' crossprod(x, y = NULL) ## S4 method for signature 'fm,ANY' tcrossprod(x, y = NULL)
x, y |
numeric matrices (or vectors): |
lazy |
a logical value, indicating to perform the computation lazily. |
a double matrix
mat <- fm.runif.matrix(100, 10) crossprod(mat) tcrossprod(mat)