[Rcpp-devel] A Question about List of List of Vecotrs

Fatemeh Riahi friahi65 at gmail.com
Thu May 5 22:08:52 CEST 2011


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



-- 
Fatemeh Riahi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110505/02122fd7/attachment.htm>


More information about the Rcpp-devel mailing list