search for: steps2

Displaying 1 result from an estimated 1 matches for "steps2".

Did you mean: steps
2011 Jul 31
2
memory problem; Error: cannot allocate vector of size 915.5 Mb
...h G.search and xMax appears the error term. Does anyone knows the solution of this problem or why this problem happens? The code that I run is: N<-250 x<-matrix(c(rnorm(N,-1.5,1), rnorm(N,1,1), rbinom(N,1,0.5)), ncol=3) start<-(-1) end<-3 step<-10^(-2) n.steps<-(end-start)/step steps2 <-n.steps^2 grids<-seq(from=start+step, to=end, by=step) xMax <-matrix(0,N*steps2,3) xMax[,1]<-rep(x[,1],steps2) xMax[,2]<-rep(x[,2],steps2) xMax[,3]<-rep(x[,3],steps2) G.search1<-as.matrix(rep(grids, n.steps, each=N)) G.search2<-as.matrix(rep(grids, N, each=n.steps)) G...