@@ -516,9 +516,9 @@ function distribute(A::AbstractArray, DA::DArray)
516516 return DArray (I-> localpart (s), DA)
517517end
518518
519- ( :: Type{ DArray{T,N,S}} ) (A:: S ) where {T,N,S<: AbstractArray } = distribute (convert (AbstractArray{T,N}, A))
519+ DArray {T,N,S} (A:: S ) where {T,N,S<: AbstractArray } = distribute (convert (AbstractArray{T,N}, A))
520520
521- function ( :: Type{ Array{S,N}} ) (d:: DArray{T,N} ) where {S,T,N}
521+ function Array {S,N} (d:: DArray{T,N} ) where {S,T,N}
522522 a = Array {S} (undef, size (d))
523523 @sync begin
524524 for i = 1 : length (d. pids)
@@ -528,7 +528,7 @@ function (::Type{Array{S,N}})(d::DArray{T,N}) where {S,T,N}
528528 return a
529529end
530530
531- function ( :: Type{ Array{S,N}} ) (s:: SubDArray{T,N} ) where {S,T,N}
531+ function Array {S,N} (s:: SubDArray{T,N} ) where {S,T,N}
532532 I = s. indices
533533 d = s. parent
534534 if isa (I,Tuple{Vararg{UnitRange{Int}}}) && S<: T && T<: S && ! isempty (s)
@@ -543,7 +543,7 @@ function (::Type{Array{S,N}})(s::SubDArray{T,N}) where {S,T,N}
543543 return a
544544end
545545
546- function ( :: Type{ DArray} ) (SD:: SubArray{T,N} ) where {T,N}
546+ function DArray (SD:: SubArray{T,N} ) where {T,N}
547547 D = SD. parent
548548 DArray (size (SD), procs (D)) do I
549549 lindices = Base. reindex (SD, SD. indices, I)
0 commit comments