Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with multi-dimensional indexing #197

Open
oschub opened this issue Feb 4, 2019 · 0 comments
Open

Problem with multi-dimensional indexing #197

oschub opened this issue Feb 4, 2019 · 0 comments

Comments

@oschub
Copy link

oschub commented Feb 4, 2019

If I define a DArray, say

julia> a = dfill(10, (4,4), workers(), [1 4])
4×4 DArray{Int64,2,Array{Int64,2}}:
 10  10  10  10
 10  10  10  10
 10  10  10  10
 10  10  10  10

then its values can be retrieved with one-dimensional indexing

julia> a[5:8]
4-element view(reshape(::DArray{Int64,2,Array{Int64,2}}, 16), 5:8) with eltype Int64:
 10
 10
 10
 10

but with multi-dimensional indexing an error is returned:

julia> a[:,2]
4-element view(::DArray{Int64,2,Array{Int64,2}}, :, 2) with eltype Int64:
Error showing value of type SubArray{Int64,1,DArray{Int64,2,Array{Int64,2}},Tuple{Base.Slice{Base.OneTo{Int64}},Int64},false}:
ERROR: invoke: argument type error

I'm running Julia v1.1.0 and DistributedArrays v0.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant