-
Notifications
You must be signed in to change notification settings - Fork 89
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
ak.array
gives unexpected results on a transposed numpy multi-dimensional array.
#3757
Comments
This is interesting:
|
…mpy multi-dimensional array.
…osed numpy multi-dimensional array.
…osed numpy multi-dimensional array.
…osed numpy multi-dimensional array.
…osed numpy multi-dimensional array.
Dropped a comment on the PR. The reason for this is that for numpy the transpose is being treated as a different view of the same data (switches between column and row major), but the underlying data hasn't changed. We send the underlying data over as a buffer and ignore the order. When we do a copy, it actually moves the data elsewhere This comment of the PR explains better and looks at the flags of the array and transpose: |
…osed numpy multi-dimensional array.
…osed numpy multi-dimensional array.
…osed numpy multi-dimensional array.
… multi-dimensional array. (#3761) Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
Describe the bug
ak.array
gives unexpected results on a transposed numpy multi-dimensional array.To Reproduce
The text was updated successfully, but these errors were encountered: