ArrayViews.jl
ArrayViews.jl copied to clipboard
Improper View Error
I stumbled upon this behavior today:
julia> a = rand(5)
5-element Array{Float64,1}:
0.123137
0.370571
0.740451
0.857524
0.143512
julia> view(a, :, 2)
5-element ArrayViews.ContiguousView{Float64,1,Array{Float64,1}}:
#undef
#undef
#undef
#undef
#undef
Should this be an error?
Is this still relevant?
The behavior is unchanged on master:
julia> a = rand(5)
5-element Array{Float64,1}:
0.76569
0.124087
0.332332
0.293954
0.801056
julia> aview(a, :, 2)
5-element ArrayViews.ContiguousView{Float64,1,Array{Float64,1}}:
#undef
#undef
#undef
#undef
#undef