Skip to content

Commit f8c26bd

Browse files
authored
Merge pull request #158 from JuliaParallel/fbot/deps
Fix deprecations
2 parents 1241687 + b1d7193 commit f8c26bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/darray.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,9 @@ function distribute(A::AbstractArray, DA::DArray)
516516
return DArray(I->localpart(s), DA)
517517
end
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
529529
end
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
544544
end
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

Comments
 (0)