Thanks for your attention, but I got the right result with this code, and the .* and ./ operators takes about 0.2 seconds in each loop. I guess that difference comes from the use of Devectorize package.
在 2015年12月8日星期二 UTC+8下午11:45:57,Kristoffer Carlsson写道: > > The .* and ./ operators are slow. > > This runs in about 8 seconds. I get a bunch of Nans as a result so maybe I > messed up somewhere but you can at least see the same principles: > > https://gist.github.com/KristofferC/a7d61aa7cb9ea7e18d3e > > Note that I used the Devectorize package. > >> >>
