Numpy\'s logical_or function takes no more than two arrays to compare. How can I find the union of more than two arrays? (The same question could be asked wit
logical_or
In case someone still need this - Say you have three Boolean arrays a, b, c with the same shape, this gives and element-wise:
a
b
c
and
a * b * c
this gives or:
or
a + b + c
Is this what you want? Stacking a lot of logical_and or logical_or is not practical.
logical_and