-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Copy link
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]good first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to JuliastdlibJulia's standard libraryJulia's standard library
Description
Something like
mmap(io, Matrix{Float32}, (10, 0))
Will produce a matrix with zero size in all dimensions. I'm working with memory mapped data sets that may occasionally be empty, and I was expecting mmap
to still preserve the non-zero dimensions I pass to it.
Source of the problem is here: https://github.com/JuliaLang/julia/blob/v1.7.2/stdlib/Mmap/src/Mmap.jl#L196
len == 0 && return Array{T}(undef, ntuple(x->0,Val(N)))
Metadata
Metadata
Assignees
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]good first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to JuliastdlibJulia's standard libraryJulia's standard library