JuliaArrays / JuliaArrays/StaticArrayInterface.jl
Mismatch between `Base._to_indices` and `StaticArrayInterface.static_to_indices` on 1.11
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 14
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
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.
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 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.
Assessment
- Tech stack
- julia
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100