I have data (originally pulled in from python via pycall) that is naturally stored in a 2D array (N, 3) (i…e, it is an array of points in 3D). Right now, I can wrap this in Julia with the command:
X = unsafe_wrap(Array{Float64,2}, Ptr{Float64}(Xptr), (3,N))
What I would like to do is have this wrapped as an array of arrays, so that I can easily just iterate through each of the points. Is this possible? How so?
No, the memory was allocated by python and will be freed by python. gideonsimpson needs to deal with this problem anyway. Or did I misunderstand the context?