Bug in `strides` for reshaped views
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
- performance
Research direction
Start by reproducing the reported Julia REPL cases for ArrayInterface.strides on u_view and the two reshaped views. Trace the strides entry point for view and reshape behavior, then compare the results with the expected (10,) and (10, 20) semantics. Done means the behavior is clarified or corrected and the reported cases are covered by tests.
Written by the indexing model from the issue text.
Description
julia> using ArrayInterface
julia> u_base = randn(10, 10); u_view = view(u_base, 3, :); u_reshaped_view1 = reshape(u_view, 1, :); u_reshaped_view2 = reshape(u_view, 2, :);
julia> ArrayInterface.strides(u_reshaped_view1)
(static(1), 1)
julia> ArrayInterface.strides(u_reshaped_view2)
(static(1), 2)
These seem to be wrong, I think. Because of ArrayInterface.strides(u_view) == (10,), the strides should be
ArrayInterface.strides(u_reshaped_view1) = (10 #= doesn't matter since there is only one element in this dimension =#, 10)ArrayInterface.strides(u_reshaped_view1) = (10, 20)
Is that correct?
- 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
-
Difficulty 3/5 1-2 days Newbie friendliness 35/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
All issues in JuliaArrays/StaticArrayInterface.jl
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
SciML/MomentClosure.jl#121 ·
-
bug 🐞 distributed 🕸️
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
CliMA/Oceananigans.jl#6049 ·
-
`eof(io)` raises `UndefVarError` after `using XML`: the exported `eof` does not extend `Base.eof` Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Documentation Good first issue MOLE.jl
Difficulty 1/5 1-3 hours Newbie friendliness 85/100