-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Possible conversion bug with record array #3351
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
Comments
U[0] is a void scalar, and this scalar contains a 4x4 array, so that's the The behaviour's still a bug though. On Wed, May 22, 2013 at 7:28 PM, Nicolas Rougier
|
It goes down to direct buffers. To understand the result try: |
This commit attempts to make structure assignment more consistent, and then changes multi-field indices to return a view instead of a copy. Assignment between structures now works "by field position" rather than "by field name". Fixes numpy#2353, fixes numpy#6085, fixes numpy#3351, fixes numpy#6085, fixes numpy#6314, fixes numpy#2346, fixes numpy#7058, fixes numpy#3641, fixes numpy#5994, fixes numpy#7262, fixes numpy#7493
This commit attempts to make structure assignment more consistent, and then changes multi-field indices to return a view instead of a copy. Assignment between structures now works "by field position" rather than "by field name". Fixes numpy#2353, fixes numpy#6085, fixes numpy#3351, fixes numpy#6085, fixes numpy#6314, fixes numpy#2346, fixes numpy#7058, fixes numpy#3641, fixes numpy#5994, fixes numpy#7262, fixes numpy#7493
I got a weird output from the following script:
Output:
([[0.0, 1.875, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 1.875], [0.0, 0.0, 0.0, 0.0]],)
Tested on numpy 1.7.1, confirmed on 1.6.0.
As noted by Chirs Barker on the mailing list, U is a rank-zero array, not a 4X4 array.
The text was updated successfully, but these errors were encountered: