Le 05/05/11 22:08, Fatemeh Riahi a écrit :
Hi,
I am trying to translate an R code to cpp,
in R I have a structure like this:
A=list();
for(i in 1:n){
A[[i]]=list();
for(j in 1:m){
A[[i]][[j]]=rep(0, m);
}
}
I want to define this structre in Rcpp not to get it from R with a function
Thank you for posting here. But please be patient -- the list is read by
many, but not everybody can reply within minutes. Also, once posted here, no
point in crossposting to stackoverflow.com.
On 5 May 2011 at 17:08, Fatemeh Riahi wrote:
| Hi,
| I am trying to translate an R code to cpp,
| in R
Hi,
I am trying to translate an R code to cpp,
in R I have a structure like this:
A=list();
for(i in 1:n){
A[[i]]=list();
for(j in 1:m){
A[[i]][[j]]=rep(0, m);
}
}
I want to define this structre in Rcpp not to get it from R with a function
I really appreciate if you help me
Thanks
--