Re: [Numpy-discussion] isnan and co: cleaning up

2008-09-06 Thread David Cournapeau
On Sat, Sep 6, 2008 at 5:40 PM, David Cournapeau <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: >> >> >> This one >> Patch available here: http://scipy.org/scipy/numpy/ticket/907 Tested with gcc on mac os X, it also builds with VS 2003

Re: [Numpy-discussion] Are the CPP symbols HAVE_LONGDOUBLE_FUNCS and HAVE_FLOAT_FUNCS public ?

2008-09-06 Thread Pauli Virtanen
Sat, 06 Sep 2008 12:15:59 +0900, David Cournapeau wrote: > On Fri, Sep 5, 2008 at 4:50 PM, Pauli Virtanen <[EMAIL PROTECTED]> wrote: >> >> If you remove them, please put a reminder somewhere (eg ticket) to >> update the documentation accordingly. > > Is there a reason for not updating the document

Re: [Numpy-discussion] does numpy have funcs like isanynan() or isallfinite()?

2008-09-06 Thread Robert Kern
On Sat, Sep 6, 2008 at 02:21, dmitrey <[EMAIL PROTECTED]> wrote: > hi all, > > does numpy have funcs like isanynan(array) or isallfinite(array)? No. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interp

Re: [Numpy-discussion] isnan and co: cleaning up

2008-09-06 Thread David Cournapeau
Charles R Harris wrote: > > > This one > > int main(int argc, char *argv[]) > > { > ... > while (x == y) { > something(); > > somethingelse(); > if (some_error) > do_correct(); > > else >

[Numpy-discussion] does numpy have funcs like isanynan() or isallfinite()?

2008-09-06 Thread dmitrey
hi all, does numpy have funcs like isanynan(array) or isallfinite(array)? I very often use any(isnan(my_array)) or all(isfinite(my_array)), I guess having a single case triggered on would be enough here to omit further checks. Regards, D. ___ Numpy-d