JuliaParallel / JuliaParallel/DistributedArrays.jl

Problem with multi-dimensional indexing

Abierto
#197 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Julia
Estrellas
205
Forks
34
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce the example with Julia v1.1.0 and DistributedArrays v0.6.0, comparing one-dimensional indexing with `a[:,2]`. Trace the DArray multi-dimensional indexing path and determine why displaying the resulting view raises an `invoke: argument type error`. Done means the multidimensional slice returns and displays its values without that error.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
julia
Área
distributed-systems
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.