Re:Optimizing .*: Details of Vectorization and Metaprogramming
by davidacoder on Saturday October 22, 2016 @01:35PM
(#12769624)
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.
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
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-sy...