diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-10-20 16:35:09 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-10-21 12:39:22 -0500 |
commit | fcc394033c5902bbd8104694c5f7d33a8b5eb99f (patch) | |
tree | 15b261f6358faf801d1b80eca24e3955d438269a /numpy/array_api/_elementwise_functions.py | |
parent | 32f1359fc2d11014b240dee2270acea1784a34bb (diff) | |
download | numpy-fcc394033c5902bbd8104694c5f7d33a8b5eb99f.tar.gz |
DEP,BUG: Coercion/cast of array to a subarray dtype will be fixed
This currently appends the subarray dtype dimensions first and then
tries to assign to the result array which uses incorrect broadcasting
(broadcasting against the subarray dimensions instead of repeating
each element according to the subarray dimensions).
This also fixes the python scalar pathway `np.array(2, dtype="(2)f4,")`
which previously only filled the first value. I consider that a clear
bug fix.
Closes gh-17511
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions