[R] uniroot speed and vectorization?

2011-04-02 Thread ivo welch
curiosity---given that vector operations are so much faster than scalar operations, would it make sense to make uniroot vectorized? if I read the uniroot docs correctly, uniroot() calls an external C routine which seems to be a scalar function. that must be slow. I am thinking a vectorized

Re: [R] uniroot speed and vectorization?

2011-04-02 Thread Petr Savicky
On Sat, Apr 02, 2011 at 08:24:07AM -0400, ivo welch wrote: curiosity---given that vector operations are so much faster than scalar operations, would it make sense to make uniroot vectorized? if I read the uniroot docs correctly, uniroot() calls an external C routine which seems to be a scalar