Re: [R] functions of vectors : loop or vectorization

2012-07-18 Thread Uwe Ligges
On 14.07.2012 00:41, Julien Salanie wrote: I have a read a lot about the benefits of vectorization in R. I have a program that takes "almost forever" to run. A good way to see if I have learned something ... My problem can be summarized like this : I have a nonlinear function of several variables

[R] functions of vectors : loop or vectorization

2012-07-15 Thread Julien Salanie
I have a read a lot about the benefits of vectorization in R. I have a program that takes "almost forever" to run. A good way to see if I have learned something ... My problem can be summarized like this : I have a nonlinear function of several variables that I want to optimize over one letting the