bigmemory icon indicating copy to clipboard operation
bigmemory copied to clipboard

Matrix multiplication in bigmemory matrix

Open MMriran opened this issue 4 years ago • 2 comments

Hi, thank you for your great tool. It is very useful to handle the big matrix. But I found I can not use the bigmemory matrix to perform matrix multiplication (like, A%*%B, A and B are bigmemory matrixs). How can I solve it?

MMriran avatar Mar 06 '21 10:03 MMriran

library(bigalgebra)
X <- big.matrix(2, 3, init = 1)
Y <- big.matrix(3, 4, init = 2)
XY <- X %*% Y
XY[]

privefl avatar Mar 06 '21 12:03 privefl

library(bigalgebra)
X <- big.matrix(2, 3, init = 1)
Y <- big.matrix(3, 4, init = 2)
XY <- X %*% Y
XY[]

thank you for your reply!

MMriran avatar Mar 09 '21 01:03 MMriran