Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Mismatch between `Base._to_indices` and `StaticArrayInterface.static_to_indices` on 1.11

Open
#35 0 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaArrays/StaticArrayInterface.jl

All issues in JuliaArrays/StaticArrayInterface.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.