summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2019-04-14 15:49:15 -0700
committerEric Wieser <wieser.eric@gmail.com>2019-05-01 08:55:34 -0700
commite6a7e05753f8a5f56de9653bfecd85a22f53d7c6 (patch)
tree818f4d1771b3081ab59c49b67651233bdc5ad0bf /numpy/core/numeric.py
parentb5895be146cdc3063ffa9ca8ae27b5bcf7992719 (diff)
downloadnumpy-e6a7e05753f8a5f56de9653bfecd85a22f53d7c6.tar.gz
BUG: Always return views from structured_to_unstructured when possible
Also applies to unstructured_to_structured While producing correct resutls, the test added in this commit would previously make an unecessary copy, causing the assertion to fail. The cause was `astype` was being asked to convert from a subarray of shape `(x, y)` to one of `(x*y,)`, which it cannot do without making a copy. This changes the approach used to skip the step of flattening subarrays to 1d
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions