[issue26596] numpy.all np.all .all

2016-03-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, but behaving correctly. You have: py> A = np.random.random((10,1)) py> np.all(A) True py> np.all(A) < 1 # is True less than 1? False which is correct: True is *not* less than 1. But True *is* less than 2: py> True < 2 True py> np.all(2*A)

[issue26596] numpy.all np.all .all

2016-03-20 Thread Eryk Sun
Eryk Sun added the comment: NumPy is not part of Python's standard library, so this is a 3rd party problem. However, please don't waste the time of the NumPy developers with this. You either haven't read the documentation or have misread it. numpy.all [1] is an AND reduction over the specified

[issue26596] numpy.all np.all .all

2016-03-20 Thread Jose
New submission from Jose: the numpy.all function does not work. I created A = np.random.random((10,1)) np.all(A)<1 gives me False, which is wrong! and B = 2 * A np.all(B)<2 gives me True, which is correct! also np.sum(A) < 10, gives me True, which is correct! -- components: Macintosh f