Skip to content

Commit

Permalink
DArray: adequating undefinit to the new AllocateArray
Browse files Browse the repository at this point in the history
  • Loading branch information
fda-tome committed Jun 24, 2024
1 parent 5c3d7d8 commit 2b74fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/array/alloc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ const BlocksOrAuto = Union{Blocks{N} where N, AutoBlocks}
function DArray{T}(::UndefInitializer, p::Blocks, dims::Dims) where {T}
d = ArrayDomain(map(x->1:x, dims))
part = partition(p, d)
f = function (_, T, sz)
f = function (T, sz)
Array{T, length(sz)}(undef, sz...)
end
a = AllocateArray(T, f, d, part, p)
a = AllocateArray(T, f, false, d, part, p)
return _to_darray(a)
end

Expand Down

0 comments on commit 2b74fbe

Please sign in to comment.