Charles R Harris
2016-03-04 15:31:11 UTC
Hi All,
There is currently some discussion
<https://github.com/numpy/numpy/pull/7373> on whether or not object arrays
should have an identity for bitwise reductions. Currently, they do not use
the identity for non-empty arrays, so this would only affect reductions on
empty arrays. Currently bitwise_or, bitwise_xor, and bitwise_and will
return (bool_) 0, (bool_) 0, and (int) -1 respectively in that case. Note
the non-object arrays work as they should, the question is only about
object arrays.
Thougts?
Chuck
There is currently some discussion
<https://github.com/numpy/numpy/pull/7373> on whether or not object arrays
should have an identity for bitwise reductions. Currently, they do not use
the identity for non-empty arrays, so this would only affect reductions on
empty arrays. Currently bitwise_or, bitwise_xor, and bitwise_and will
return (bool_) 0, (bool_) 0, and (int) -1 respectively in that case. Note
the non-object arrays work as they should, the question is only about
object arrays.
Thougts?
Chuck