Hi everyone, 

This very simple loop


m=0.0


@time for i=1:1000000

      r= rand()-.05

      m=max(m,abs(r))

end


allocates 32 MB of memory.


I do not have this problem when I write for loops over vector components, 
but how can I overwrite scalars in Julia?


Thanks a lot and looking forward to any possible tips or ideas.


-Mike


Reply via email to