Thanks everyone. Gavin Simpson wrote: >But neither is that slow on my system. What is A? > It's in the middle of a loop. I'm doing some maximum likelihood estimation, and having to evaluate my model over and over again for different parameter values. Thanks, Martin