Re: [Rcpp-devel] multidimensional arrays

2012-06-15 Thread Darren Cook
> I'm a regular user of R, but my knowledge of C++ is limited. > > I need to create functions to generate random landscapes ...This would take > quite a > long time in R so I thought it would be better to use Rcpp... Just to add to what Steve has said: write it in R, then profile, then just con

Re: [Rcpp-devel] multidimensional arrays

2012-06-15 Thread Steve Lianoglou
o, >> >> Yes, you're probably right, my question is more related with the C++ >> itself and maybe this is not the place to put it. >> >> Frederico >> >> >> -Mensagem original- >> De: Steve Lianoglou [mailto:mailinglist.honey...@gmail

Re: [Rcpp-devel] multidimensional arrays

2012-06-15 Thread Steve Lianoglou
Hi Frederico, On Fri, Jun 15, 2012 at 5:27 AM, Frederico Mestre wrote: > Hello all: > > I’m a regular user of R, but my knowledge of C++ is limited. > > I need to create functions to generate random landscapes (with two habitat > classes) based on area and distance amongst patches. This would tak