Hi
If I have an n x m array of bools, is there a handy way for me to
perform a 'bitwise_and' or 'bitwise_or' along an axis, for example all
the rows or all the columns? For example
a =
[[1,0,0,0],
[0,0,1,0],
[0,0,0,0]] (0 and 1 meaning True and False)
a.bitwise_or(axis=0)
giving
[1,0,1,0
On Tue, Apr 4, 2017 at 9:14 AM, Mads Ipsen wrote:
> Hi
>
> If I have an n x m array of bools, is there a handy way for me to perform
> a 'bitwise_and' or 'bitwise_or' along an axis, for example all the rows or
> all the columns? For example
>
> a =
> [[1,0,0,0],
> [0,0,1,0],
> [0,0,0,0]] (0 and
Thanks!
On 04/04/2017 09:49 AM, Jaime Fernández del Río wrote:
On Tue, Apr 4, 2017 at 9:14 AM, Mads Ipsen mailto:mads.ip...@gmail.com>> wrote:
Hi
If I have an n x m array of bools, is there a handy way for me to
perform a 'bitwise_and' or 'bitwise_or' along an axis, for example