Ufunc identity for bitwise reduction of object arrays.
March 4, 2016
3:31 p.m.
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
3638
Age (days ago)
3638
Last active (days ago)
0 comments
1 participants
participants (1)
-
Charles R Harris