Mismatch between `Base._to_indices` and `StaticArrayInterface.static_to_indices` on 1.11
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- julia
- Domain
- backend-api-design
Research direction
Start by comparing StaticArrayInterface.static_to_indices with Base.to_indices using the Julia 1.11 reproduction in the issue. Trace how the tuple containing a Boolean array is converted, then verify that static_to_indices produces the same CartesianIndex result as Base.to_indices.
Written by the indexing model from the issue text.
Description
julia> a = ones(2, 2, 1)
2×2×1 Array{Float64, 3}:
[:, :, 1] =
1.0 1.0
1.0 1.0
julia> idxs = 1, fill(true, 2, 2)
(1, Bool[1 1; 1 1])
julia> StaticArrayInterface.static_to_indices(a, idxs)
(1, [1, 2, 3, 4])
julia> Base.to_indices(a, idxs)
(1, CartesianIndex{2}[CartesianIndex(1, 1), CartesianIndex(2, 1), CartesianIndex(1, 2), CartesianIndex(2, 2)])
The Base result was changed in 1.11.
- Dominant language
- Julia
- Stars
- 14
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
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.
More from JuliaArrays/StaticArrayInterface.jl
-
tagbot-manual
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Storage Order Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaArrays/StaticArrayInterface.jl#4 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
JuliaArrays/StaticArrayInterface.jl#3 · 10 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
JuliaArrays/StaticArrayInterface.jl#10 · 2 comments ·
All issues in JuliaArrays/StaticArrayInterface.jl
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
interpolate! from a Float32 LatitudeLongitudeGrid fails on Metal: Float64 division in find_λ_range Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
CliMA/Oceananigans.jl#6056 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
epiforecasts/BVDOutbreakSize#811 ·