In some high performance code I want to convert an 2 x n `Matrix{Float64}` 
to a n long `Matrix{Vec{2,Float64}}`with no memory allocation (both types 
will store memory in the same order).  The following works:

*v=rand(2,100)*
*w=unsafe_wrap(Vector{Vec{2,Float64}},*
*            reinterpret(Ptr{Vec{2,Float64}},pointer(v)),*
*            size(pts,1),true)*

The variable *v* is a throw away variable, however, and as I understand it, 
the way its written the memory for *w* will be freed as soon as *v* is no 
longer referenced.  Is there any way to tell the garbage collector to not 
collect *v*?

Reply via email to