JuliaArrays / JuliaArrays/ArrayInterface.jl
Traits not forwarded for structured matrix wrappers like `Diagonal`
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 140
- Forks
- 44
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 5
Description
ArrayInterface shows Diagonal{T,<:SVector} as supporting setindex!, which is clearly not true:
using ArrayInterface, ArrayInterfaceStaticArrays, LinearAlgebra, StaticArrays
D = Diagonal(SVector(1.0, 2.0, 3.0))
ArrayInterface.can_setindex(D)
# returns true -- should be false
Should this be fixed somehow? Or is it a misunderstanding of ArrayInterface to think that this would give the correct answer?
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 example with ArrayInterface, ArrayInterfaceStaticArrays, LinearAlgebra, and StaticArrays, then inspect the behavior of ArrayInterface.can_setindex for Diagonal wrapping an SVector. Determine whether the reported result is incorrect or reflects the intended interface semantics; done means the behavior and its expected contract are clarified and covered appropriately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100