3 ms·
It is worth pointing out that this blog post is old, from January. Julia 0.5 adds a phenomenal new feature, the dot syntax [1], that automatically fuses vectori
by davidacoder 10y ago
It is worth pointing out that this blog post is old, from January. Julia 0.5 adds a phenomenal new feature, the dot syntax [1], that automatically fuses vectorized expressions. I believe that feature was added quite a while after this blog post was written.
Currently the dot syntax works for all functions, except for operators like .+, but in julia 0.6 it will work across the board. At that point, an expression like
A.*B.*C
will automatically be translated into the de-vectorized loop version that the author identifies as the fasted way to implement something like that, without the need for any macros or other special tricks.
[1] http://docs.julialang.org/en/latest/manual/functions/#dot-syntax-for-vectorizing-functions http://docs.julialang.org/en/latest/manual/functions/#dot-sy...