Could we use that to read a block of data from memory starting at some offset?
The problem is, how would we generate a Vector? (Abstract thing.)
The below example isn’t going to work. The type of x and y are both concrete. It is not possible to create (instantiate) an abstract type.
x::Vector = Float32[1.0]
y = convert(Vector, x)
So we would have to use a function to get the behavior we want or something?
function untitled(x::Vector)
end
I was being stupid. What you suggest is more like this:
julia> x::Vector{Vector} = [[1.0]]
julia> typeof(x)
Vector{Vector}
julia> typeof(x[1])
Vector{Float64}
So then we would need a way to inspect the memory of x, and hope this gives useful hints.