> I believe if all your type fields are concrete (which they are in the case 
> of Float64), the performance should be the same as using Vector{Float64}. 
> This is really nice since you get to use code that is much more 
> understandable like state.x instead of state[1] for no penalty.

I think to get densely packed array the type needs to be immutable:

immutable StateVec
    x::Float64
    y::Float64
    z::Float64
end

Otherwise it will be an array of pointers.

Reply via email to