Re: [Numpy-discussion] object arrays and ==

2009-05-04 Thread Keith Goodman
On Mon, May 4, 2009 at 2:02 PM, Ryan May wrote: > On Mon, May 4, 2009 at 3:55 PM, David Warde-Farley > wrote: >> >> Hi, >> >> Is there a simple way to compare each element of an object array to a >> single object? objarray == None, for example, gives me a single >> "False". I couldn't find any re

Re: [Numpy-discussion] object arrays and ==

2009-05-04 Thread Ryan May
On Mon, May 4, 2009 at 3:55 PM, David Warde-Farley wrote: > Hi, > > Is there a simple way to compare each element of an object array to a > single object? objarray == None, for example, gives me a single > "False". I couldn't find any reference to it in the documentation, but > I'll admit, I wasn'

[Numpy-discussion] object arrays and ==

2009-05-04 Thread David Warde-Farley
Hi, Is there a simple way to compare each element of an object array to a single object? objarray == None, for example, gives me a single "False". I couldn't find any reference to it in the documentation, but I'll admit, I wasn't quite sure where to look. David _

[Numpy-discussion] object-arrays and isnan

2008-06-03 Thread ahalda
Hi I'm trying to make a python class to be used in object arrays (specifically, an mpfr type for multiprecision). Numpy lets me create member functions like 'cos' which get called elemenwise when I call cos(a) on an object array a. However, this doesn't work for some functions, like isnan. Lookin