I have a N-dim julia array and a view of a slice. Is there a way to check if this view is contiguous (that would be a.flags["F"]
in NumPy)? It seems Base.iscontiguous
is not the answer.
a = ones((1,1,1))
t = (1:1, 1:1, 1:1)
v = @view a[t...]
println(Base.iscontiguous(v)) # false
Base.iscontiguous(a[t...]) # MethodError: no method matching iscontiguous(::Array{Float64, 3})
Here I know the underlying data block is contiguous, but is there a way to check it for more complex views?