-
-
Couldn't load subscription status.
- Fork 5.7k
Fix linear indexing for 0D views of OffsetVectors #39404
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
|
Juuust outside the online reviewable window is a comment that should now be removed: |
|
Eh, easier to actually do the edits than try to make that link work. Hah. |
|
I must confess I'm a little surprised this hasn't cropped up before. Unlike #39393, this hits far more code paths than just a no-index getindex. Do we have workarounds in the Offset implementations? Or are we missing some test coverage? |
|
This has been a bug in |
* Fix linear indexing for views of OffsetVectors * update comments Co-authored-by: Matt Bauman <[email protected]> (cherry picked from commit f2a2637)
* Fix linear indexing for views of OffsetVectors * update comments Co-authored-by: Matt Bauman <[email protected]>
* Fix linear indexing for views of OffsetVectors * update comments Co-authored-by: Matt Bauman <[email protected]>
* Fix linear indexing for views of OffsetVectors * update comments Co-authored-by: Matt Bauman <[email protected]> (cherry picked from commit f2a2637)
Fixes #37274 by choosing an appropriate starting linear index for
OffsetVectors using their axes.Now
This solution is inspired by #39393