[Numpy-discussion] logic problem

Ernest Adrogué eadrogue at gmx.net
Mon Jan 18 13:43:39 EST 2010


Hi,

This is hard to explain. In this code:

reduce(np.logical_or, [m1 & m2, m1 & m3, m2 & m3])

where m1, m2 and m3 are boolean arrays, I'm trying to figure
out an expression that works with an arbitrary number of
arrays, not just 3. Any idea??

Bye.



More information about the NumPy-Discussion mailing list