summaryrefslogtreecommitdiff
path: root/numpy/array_api/_elementwise_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-05-11 16:34:29 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2020-05-11 18:42:14 -0500
commitb5c2f94df50bab697eaa7d9727a4f3b44f89d329 (patch)
tree4e30d6749434bdc565077367d27949ad0c4516ff /numpy/array_api/_elementwise_functions.py
parent87cb35f371c5711ea20979b9e2569ca544b237e6 (diff)
downloadnumpy-b5c2f94df50bab697eaa7d9727a4f3b44f89d329.tar.gz
BUG: Avoid incorrect broadcasts on non-core outputs in gufuncs
Mark the core dimensions as reduce axis. This allows them to be freely broadcast (basically ignored for most practical purposes) while other axes are normally broadcast even though the operand is read-only or write-only. If we were to use read-write operands with `REDUCE_OK` these additional dimensions are currently simply absored as reduction dimensions... (I hope this is understandable, please see the issues/test for an example...) Fixes gh-15139, replaces gh-15142 Co-Authored-By: Marten van Kerkwijk <mhvk@astro.utoronto.ca>
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions