[Numpy-discussion] masked_equal not commutative

2008-08-12 Thread Charles Doutriaux
As always as i clicked send i realized my error it is indeed not commutative and that makes sense but i'm not sure the case: numpy.ma.masked_equal(1,a) should have worked, since we don't really know how to do this comparison, the only thing that could make sense would be commutation but i thinks

[Numpy-discussion] masked_equal not commutative?

2008-08-12 Thread Charles Doutriaux
Hi I'm using 1.1.1 and found that numpy.ma.masked_equal is not commutative! I would expect it to be in this case. Or raise an error for uncompatible shape in the first case, no ? >>> a = numpy.ma.arange(100) >>> a.shape=(10,10) >>> b=numpy.ma.masked_equal(1,a) >>> b Traceback (most recent cal