Skip to content
Prev 154899 / 398503 Next

Odp: optimizing speed of calculation (recursive product)

Hi

r-help-bounces at r-project.org napsal dne 03.09.2008 16:39:07:
Maybe simple math? You want last two members of 2*cumprod(a).

So
user  system elapsed 
   1.97    0.04    2.00
shall be a little bit quicker then for cycle. But it is valid only for the 
above calculation.

Regards
Petr
http://www.R-project.org/posting-guide.html