Re: [Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Emmanuelle Gouillart
Hi Zach and Derek, thank you very much for your quick and clear answers. Of course the third parameter is the out array, I was just being very stupid! (I had read the documentation though, but somehow it didn't make it to my brain :-) Sorry... > Read the documentation for numpy.minimum and numpy.

Re: [Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Derek Homeier
Hi Emmanuelle, a, b, c = np.array([10]), np.array([2]), np.array([7]) min_val = np.minimum(a, b, c) min_val > array([2]) max_val = np.maximum(a, b, c) max_val > array([10]) min_val > array([10]) > > (I'm using numpy 1.4, and I observed the same behavior with numpy > 2

Re: [Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Zachary Pincus
> a, b, c = np.array([10]), np.array([2]), np.array([7]) min_val = np.minimum(a, b, c) min_val > array([2]) max_val = np.maximum(a, b, c) max_val > array([10]) min_val > array([10]) > > (I'm using numpy 1.4, and I observed the same behavior with numpy > 2.0.0.dev8600 o

[Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Emmanuelle Gouillart
Hello, >>> a, b, c = np.array([10]), np.array([2]), np.array([7]) >>> min_val = np.minimum(a, b, c) >>> min_val array([2]) >>> max_val = np.maximum(a, b, c) >>> max_val array([10]) >>> min_val array([10]) (I'm using numpy 1.4, and I observed the same behavior with numpy 2.0.0.dev8600 on a