-
Notifications
You must be signed in to change notification settings - Fork 37
OffsetArrays is forwarding wrapper #302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Note there is still yet another VectorizationBase test failure brought on by recent ArrayInterface developments: [5] grouped_strided_pointer(A::Tuple{LinearAlgebra.Adjoint{Float64, Matrix{Float64}}, SizedWrapper{5, 6, Float64, LinearAlgebra.Adjoint{Float64, Matrix{Float64}}}, LinearAlgebra.Adjoint{Float64, Matrix{Float64}}}, #unused#::Val{(((1, 1), (3, 1)), ((1, 2), (2, 1)), ((2, 2), (3, 2)))})
@ LayoutPointers ~/.julia/dev/LayoutPointers/src/grouped_strided_pointers.jl:62 |
Codecov Report
@@ Coverage Diff @@
## master #302 +/- ##
=======================================
Coverage 90.93% 90.93%
=======================================
Files 9 9
Lines 1401 1401
=======================================
Hits 1274 1274
Misses 127 127 Continue to review full report at Codecov.
|
I'm not sure if we should consider OffsetArray a forwarding wrapper because it changes indices. Maybe the problem is with how |
Is CI using the actual PR subpackages when testing dependencies? |
It would be good to have |
Feel free to make a PR, otherwise I'll probably just upper bound ArrayInterface. |
We could just define this ArrayInterface.stride_rank(T::Type{<:OffsetArray}) = stride_rank(parent_type(T))
ArrayInterface.contiguos_axis(T::Type{<:OffsetArray}) = contiguos_axis(parent_type(T)) There's probably a way to get |
Still, something with that meaning would be useful, as otherwise people are going to have to implement the entire API / |
The issue with that approach is that if something defines it's own On the other hand, that might be a documentation issue with Sorry, I'm not trying to be difficult. Just trying to find the solution that will work best for everyone in the long run. |
Closed in favor of #303 |
Yeah, I think it makes sense to favor correctness, but I think it's likely the |
It's starting to look that way. We might need some sort of intermediate solution. |
Fixes some VectorizationBase failures
https://github.com/JuliaArrays/ArrayInterface.jl/runs/6760119793?check_suite_focus=true
Not sure how all these regressions got by us earlier?