Skip to content

Commit 7201299

Browse files
committed
Fix type inference issues on Julia master
See JuliaLang/julia#36208 For some reason, the type returned by ManyPencilArray is correctly inferred when `length.(stuff)` is replaced by `map(length, stuff)` in `size_local()`. Using `broadcast` instead of `map` also works, which is surprising given that the dot syntax should be equivalent to broadcast.
1 parent 5bdfa9d commit 7201299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PencilArrays/pencil.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ By default the dimensions are not permuted, i.e. they follow the logical order
227227
of dimensions.
228228
"""
229229
size_local(p::Pencil; permute::Bool=false) =
230-
length.(range_local(p, permute=permute))
230+
map(length, range_local(p, permute=permute))
231231

232232
"""
233233
size_global(p::Pencil; permute=false)

0 commit comments

Comments
 (0)