Hi, I have an off topic but somehow related question :
Le 19/03/2012 12:04, Matthieu Rigal a écrit : > array = numpy.logical_and(numpy.logical_and(aBlueChannel < 1.0, aNirChannel > > (aBlueChannel * 1.0)), aNirChannel < (aBlueChannel * 1.8)) Is there any significant difference between : z = np.logical_and(x,y) and z= x & y (assuming x and y are already numpy arrays and not just list) I've always used the & (and | and ~) operator because it's of course much shorter ;-) I've seen no mention of the "&" operator in np.logical_and docstring so I wonder... Best, Pierre
signature.asc
Description: OpenPGP digital signature
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion