JuliaArrays / JuliaArrays/StaticArrays.jl
StaticIndexing breaks the `to_indices` interface
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 844
- Forks
- 159
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 3
Description
The to_indices docs state that:
The returned tuple must only contain either Ints or AbstractArrays of scalar indices that are supported by array A
But StaticIndexing is not either:
See discourse:
https://discourse.julialang.org/t/a-sparse-matrix-cannot-be-indexed-by-a-svector/104265/5
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 with the to_indices contract described in the issue and inspect src/indexing.jl at lines 213-221, then review the linked Discourse discussion. Determine whether StaticIndexing or the documented interface is inconsistent, and verify that the chosen resolution makes the sparse-matrix indexing example conform to the contract.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100