[julia-users] Re: small array/vector ops with broadcast and generators?

2016-09-26 Thread jw3126
If your code consists mainly of small arrays, you may want to have a look at the FixedSizeArrays or StaticArrays package. These provide fast and convenient stack allocated arrays. On Sunday,

[julia-users] Re: small array/vector ops with broadcast and generators?

2016-09-26 Thread Jutho
For functions like dot and norm, its also good to check out all the existing methods in base, via e.g. methods(norm). You'll get this response: # 9 methods for generic function "norm":

[julia-users] Re: small array/vector ops with broadcast and generators?

2016-09-25 Thread Jared Crean
Hello Steve, I'm not up to date on the new broadcast functionality, but I can say that the function norm does not heap allocate any memory, the heap allocation is coming from the x[p:p+2], which creates a new array of length 3 and copies the values from x into it. There are a few solutions