gpuR gpuMatrix 物件
library(gpuR)
# gpuMatrix objects
X <- gpuMatrix(rnorm(100), 10, 10)
Y <- gpuMatrix(rnorm(100), 10, 10)
# transfer data to GPU when operation called
# automatically copied back to CPU
Z <- X %*% Y
library(gpuR)
# gpuMatrix objects
X <- gpuMatrix(rnorm(100), 10, 10)
Y <- gpuMatrix(rnorm(100), 10, 10)
# transfer data to GPU when operation called
# automatically copied back to CPU
Z <- X %*% Y