阅读背景:

为什么这个R计算在多个内核上运行速度较慢而单个内核运行速度更快?

来源:互联网 

Two matrices

library(parallel)
m <- matrix(1:12000000000,  nrow=300000)
p <- matrix(21:32, nrow=3)

# Use all pairings of i and j
i_vec <- rep(seq_len(ncol(m)), times = ncol(m))
j_vec <- rep(seq_len(ncol(m)), each = ncol(m))
library(parallel)
m <- matrix(1:



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: