mercedesfdu
写了一个晚上,
> xi<-array(dim=c(10000,10000));
Error: cannot allocate vector of size 390625 Kb
> yi<-array(dim=c(10000,10000));
Error: cannot allocate vector of size 390625 Kb
定义的矩阵溢出,NND!!!
rtist
Overflow has its formal definition.
suggestions:
use rm() and gc() to get rid of useless objects;
setting memory.limit() to larger values;
try SparseM package.
mercedesfdu
用循环重写了,貌似要比原来的矩阵简单些。。。
rtist
yes. decreasing space complexity is the best way, if possible.