Re: [Numpy-discussion] arrays comparison issue

2009-11-04 Thread Jean-Luc Menut
thanks to everybody ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] arrays comparison issue

2009-11-04 Thread David Cournapeau
On Wed, Nov 4, 2009 at 11:52 PM, Jean-Luc Menut wrote: > Hello all, > > > > If if define 2 variables a and b by doing the following : > > on [5]: a > Out[5]: array([ 1.7]) > > In [6]: b=array([0.8])+array([0.9]) > > In [7]: b > Out[7]: array([ 1.7]) > > > if I test the equality of a and b, instead

Re: [Numpy-discussion] arrays comparison issue

2009-11-04 Thread Lev Givon
Received from Jean-Luc Menut on Wed, Nov 04, 2009 at 09:52:15AM EST: > Hello all, > > > > If if define 2 variables a and b by doing the following : > > on [5]: a > Out[5]: array([ 1.7]) > > In [6]: b=array([0.8])+array([0.9]) > > In [7]: b > Out[7]: array([ 1.7]) > > > if I test the equalit

[Numpy-discussion] arrays comparison issue

2009-11-04 Thread Jean-Luc Menut
Hello all, If if define 2 variables a and b by doing the following : on [5]: a Out[5]: array([ 1.7]) In [6]: b=array([0.8])+array([0.9]) In [7]: b Out[7]: array([ 1.7]) if I test the equality of a and b, instead to obatin True, I have : In [8]: a==b Out[8]: array([False], dtype=bool) I kno