search for: rotateseg

Displaying 1 result from an estimated 1 matches for "rotateseg".

Did you mean: rotates
2000 Mar 30
1
Efficiency of local functions
...n f1) local to f1. In that way I pass one argument less to f2, a huge matrix. (This matrix isn't changed inside f2, so - afaik - it is passed by reference and size doesn't matter.) Still I would have expected that f1 would be a little faster, but the opposit happened: system.time( rs <- rotateSegment(im, 272, 234, 100, 72, 51, 21) ) (where rotateSegment is f1) gave > + + [1] 12.13 0.05 12.31 0.00 0.00 ## f2 extern of f1 > + + [1] 12.29 0.02 12.46 0.00 0.00 ## f2 local to f1 (I tried several times and got always similar results. I am using Linux, Red Hat 6.1) Doe...