Spam Matrix Crossproduct
crossprod.Rd
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
).
Examples
crossprod.spam(diag.spam(2),1:2)
#> [,1]
#> [1,] 1
#> [2,] 2