Strides on when SubArray has a scalar sub index
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Reproduce the two examples in the Julia REPL, focusing on ArrayInterface.StrideIndex with views that use scalar indices. Read the StrideIndex implementation and compare its results with Aview indexing; done means both reported indices match the corresponding Aview values.
Written by the indexing model from the issue text.
Description
I've been getting incorrect results when using scalar indexing that doesn't start with one on views.
julia> A = zeros(3, 4, 5);
julia> A[:] = 1:60;
julia> Aview = view(A, :, 2, :);
julia> ArrayInterface.StrideIndex(Aview)[1,1]
1
julia> Aview[1,1]
4.0
julia> Aview = view(A, 2, :, :);
julia> ArrayInterface.StrideIndex(Aview)[1,1]
1
julia> Aview[1,1]
2.0
Should we be combining those scalar indices with strides?
- 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 2/5 1-3 hours Newbie friendliness 82/100
-
interpolate! from a Float32 LatitudeLongitudeGrid fails on Metal: Float64 division in find_λ_range Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
CliMA/Oceananigans.jl#6056 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
epiforecasts/BVDOutbreakSize#811 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SciML/NonlinearSolve.jl#1310 · 1 comment ·