On Tuesday, September 9, 2014 8:02:44 AM UTC-5, Tim Holy wrote:
>
> In Matlab, until quite recently X.^2 was slower than X.*X. It was that way 
> for 
> something like 25 years before they fixed it. 
>

And a couple more years before it was fixed in Coder. And an expensive, 
very branchy set of guards was generated to wrap every invocation of pow(). 
We once had to change a whole bunch of these to X.*X to get a simulation 
down to realtime... 

Patrick

Reply via email to