4 ms·
gadfly interfaces with d3/svg, which while currently at the primitive stage, will ultimately be extremely powerful. While julia 'prefers' for loops according t
by dnautics 12y ago
gadfly interfaces with d3/svg, which while currently at the primitive stage, will ultimately be extremely powerful.
While julia 'prefers' for loops according to the docs, I tend to write things in vectorized form.... I have a toy neural net library I play around with (https://github.com/ityonemo/julia-ann/blob/master/NN.jl https://github.com/ityonemo/julia-ann/blob/master/NN.jl) - you'll note that the "nnlog" function is one line, vectorized, and the meat of the evaluated is a dot product. I did once write a benchmark comparing the unvectorized, for loop form of these matrix multiplications, and it was slower than the vectorized form (I didn't bother trying to figure out why).