Skip to content
Back to formatted view

Raw Message

Message-ID: <BANLkTin-+iuQNSU71exwVfj8_VKVq-rFnw@mail.gmail.com>
Date: 2011-05-05T20:08:52Z
From: Fatemeh Riahi
Subject: [Rcpp-devel] A Question about List of List of Vecotrs

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>