Re: [Rcpp-devel] Timings for a program

2017-01-06 Thread Christian Gunning
Why is there a dot in ".*"? Are you perhaps thinking of Matlab? On Fri, Jan 6, 2017 at 8:53 PM, Shaami wrote: > I have deleted two for loops from my code and trying to use vectors in place > of them. For reference, there's very little benefit to removing loops in a compiled language. What Marty

Re: [Rcpp-devel] Timings for a program

2017-01-06 Thread Shaami
Hello Dear Your suggestions are quite useful. I have deleted two for loops from my code and trying to use vectors in place of them. It is hard for me to produce a minimal example. However, now I am trying to use vectorization. I am having some error. Following is an example code. My basic purpose

Re: [Rcpp-devel] Timings for a program

2017-01-05 Thread Martyn Plummer
On Thu, 2017-01-05 at 05:39 -0700, Christian Gunning wrote: > > > > I am new to Rcpp. I have converted my R program into an Rcpp program. > > I want to ask a general question. Using Rcpp, my code is taking about 3 > > minutes to produce output for 100 observations. But it is taking about 2.45 > >

Re: [Rcpp-devel] Timings for a program

2017-01-05 Thread Christian Gunning
> I am new to Rcpp. I have converted my R program into an Rcpp program. > I want to ask a general question. Using Rcpp, my code is taking about 3 > minutes to produce output for 100 observations. But it is taking about 2.45 > hours to produce output for 1000 observations. Any suggestions or technic

[Rcpp-devel] Timings for a program

2017-01-04 Thread Shaami
Hi Rcpp Friends I am new to Rcpp. I have converted my R program into an Rcpp program. I want to ask a general question. Using Rcpp, my code is taking about 3 minutes to produce output for 100 observations. But it is taking about 2.45 hours to produce output for 1000 observations. Any suggestions o