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
rederico > > > -Mensagem original- > De: Steve Lianoglou [mailto:[email protected]] > Enviada em: sexta-feira, 15 de Junho de 2012 14:29 > Para: Frederico Mestre > Assunto: Re: [Rcpp-devel] multidimensional arrays > > Hi Frederico, > > But whe

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

[Rcpp-devel] multidimensional arrays

2012-06-15 Thread Frederico Mestre
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 take quite a long time in R so I thought it would be better to use Rcpp (which