Re: [R] For->lapply->parallel apply

2011-04-10 Thread Steve Lianoglou
Hi, On Sat, Apr 9, 2011 at 5:03 AM, Alaios wrote: > Dear all, > I would like to ask your help understand the subsequent steps for making my > program faster. > > The following code: > Gauslist<-array(data=NA,dim=c(dimx,dimy,dimz)) > for (i in c(1:dimz)){ >    print(sprintf('Creating the %d map',

[R] For->lapply->parallel apply

2011-04-09 Thread Alaios
Dear all, I would like to ask your help understand the subsequent steps for making my program faster. The following code: Gauslist<-array(data=NA,dim=c(dimx,dimy,dimz)) for (i in c(1:dimz)){ print(sprintf('Creating the %d map',i)); Gauslist[,,i]<-f <- GaussRF(x=x, y=y, model=model, grid=