rowSumsCrossprod | R Documentation |
Fast computation of crossprod(rowSums(X),Y)
rowSumsCrossprod(X, Y, transposeY)
X |
A matrix with dimensions n*k. Hence the result of |
Y |
A matrix with dimenions n*m. Can be a matrix with dimension m*n but then |
transposeY |
Logical. If |
A vector of length m.
Thomas Alexander Gerds <tag@biostat.ku.dk>
x <- matrix(1:10,nrow=5)
y <- matrix(1:20,ncol=4)
rowSumsCrossprod(x,y,0)
x <- matrix(1:10,nrow=5)
y <- matrix(1:20,ncol=5)
rowSumsCrossprod(x,y,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.