kaneplusplus / bigmemory

126 stars 24 forks source link

Matrix multiplication in bigmemory matrix #103

Open MMriran opened 3 years ago

MMriran commented 3 years ago

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?

privefl commented 3 years ago
library(bigalgebra)
X <- big.matrix(2, 3, init = 1)
Y <- big.matrix(3, 4, init = 2)
XY <- X %*% Y
XY[]
MMriran commented 3 years ago
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!