[Numpy-discussion] Logical AND on arrays

Tom Transue transue at niehs.nih.gov
Mon Sep 9 14:38:03 CDT 2002


If ar1 and ar2 are arrays, are the following two expressions supposed to give
the same result?

  (ar1 and ar2)

  logical_and(ar1,ar2)

The first form seems to return the value of the second array, which isn't very
useful.  It would be nice to map the first expression to do what the first does.

Tom Transue




More information about the Numpy-discussion mailing list