Closed andreasnoack closed 10 years ago
Couldn't this rather be written as
immutable ContiguousView{T,N} <: ArrayView{T,N,N}
arr::Array{T}
...
or is there a subtle difference between the two expressions?
I don't think so, because Array{T}
is not concrete so I think you'd get a less efficient solution. You couldn't do Array{T,N}
either, because
julia> view(randn(4,4), :, 1)
4-element ContiguousView{Float64,1,Array{Float64,2}}:
0.621978
1.14273
-0.30176
-0.378925
Thanks! It makes sense when you say it. It's way to easy to forget that Array{T}
is abstract.
bump
Already done in 3346c76.
@lindahua These {T}s have actually just been ignored by Julia until today's push of the call overload branch.