JuliaArrays / JuliaArrays/FillArrays.jl
`real(::Fill)` gives an array of arrays?
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 187
- Forks
- 41
- Avg merge
- 17h 29m
- Merged PRs (30d)
- 1
Description
This is surprising:
julia> real(Fill(1+im)) isa Array{<:AbstractArray{Int}}
true
julia> real(fill(1+im)) isa Array{Int,0}
true
(jl_AeiBcQ) pkg> st
Status `/private/var/folders/yq/4p2zwd614y59gszh7y9ypyhh0000gn/T/jl_AeiBcQ/Project.toml`
[1a297f60] FillArrays v0.11.7
I guess it comes from this difference, via broadcast_preserving_zero_d:
julia> Fill(1) .+ Fill(2)
0-dimensional Fill{Int64}, with entry equal to 3
julia> fill(1) .+ fill(2)
3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the real(Fill(1+im)) and fill(1+im) comparisons from the issue, then inspect broadcast_preserving_zero_d and the behavior of Fill(1) .+ Fill(2). Done should establish consistent dimensionality and element structure for these equivalent operations, with regression coverage for the shown cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100