Re: [Numpy-discussion] Medians that ignore values

2008-09-20 Thread Jake Harris
On Sat, Sep 20, 2008 at 11:02 AM, Jake Harris <[EMAIL PROTECTED]>wrote:

>
> Because you're always working with probabilities, there is almost always no
> ambiguity...whenever NaN is encounter, 0 is what is desired.
>

...of course, division presents a good counterexample.


> Bad idea?
>


So probably.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Medians that ignore values

2008-09-20 Thread Jake Harris
(sorry for starting a new thread...I wasn't subscribed yet)

Stéfan van der Walt wrote the following on 09/19/2008 02:10 AM:
>
> So am I.  In all my use cases, NaNs indicate trouble.
>

I can provide a use case where NaNs do not indicate trouble.  In fact, they
need to be treated as 0.  For example,

As x->0 in y(x) = x log x, it is traditional (eg in information theory) to
take y(0) = 0.  So if one is multiplying arrays and 0 * -inf  is
encountered, the desirable behavior is that we get 0.   Because you're
always working with probabilities, there is almost always no
ambiguity...whenever NaN is encounter, 0 is what is desired.

Perhaps numpy can have some method by which a user can specify how NaNis
treated (in addition to ignore, raise, etc). Good idea? Bad idea?
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] NEW GENERATED DLL ERROR FOUND WITHIN

2008-09-20 Thread Blubaugh, David A.
David,

Thanks for your reply.  This is as to how I developed my .ptd file.  I entered 
the following commands within this MS-DOS prompt within Windows XP:

C:\python25\Scripts> C:\python25\python  f2py.py -c --fcompiler=gnu95 
--compiler=mingw32 -m hello hello.f90

I am using the gfortran compiler, that was prescribed to use on the following 
website:

http://www.scipy.org/F2PY_Window

I am also wondering if I have set my environment variables incorrectly?  

David, is this ms-dos the correct method to execute within MS-DOS?

Thanks,

 

Dsvid

 

 


Message: 4
Date: Sat, 20 Sep 2008 16:25:00 +0900
From: David Cournapeau <[EMAIL PROTECTED]>
Subject: Re: [Numpy-discussion] NEW GENERATED DLL ERROR FOUND WITHIN
f2PY.py
To: Discussion of Numerical Python 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Blubaugh, David A. wrote:
> ImportError: DLL load with error code 193
>  

Likely to be a build error: how did you build the .pyd file ?

cheers,

David

This e-mail transmission contains information that is confidential and may be 
privileged. It is intended only for the addressee(s) named above. If you 
receive 
this e-mail in error, please do not read, copy or disseminate it in any manner. 
If you are not the intended recipient, any disclosure, copying, distribution or 
use of the contents of this information is prohibited. Please reply to the 
message immediately by informing the sender that the message was misdirected. 
After replying, please erase it from your computer system. Your assistance in 
correcting this error is appreciated.

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py

2008-09-20 Thread David Cournapeau
Blubaugh, David A. wrote:
> ImportError: DLL load with error code 193
>   

Likely to be a build error: how did you build the .pyd file ?

cheers,

David
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Medians that ignore values

2008-09-20 Thread David Cournapeau
Charles R Harris wrote:
>
>
>
> I would be happy to implement nan sorts if someone can provide me with
> a portable and easy way to detect nans for single, double, and long
> double floats. And not have it fail if the architecture doesn't
> support nans. I think getting all the needed nan detection and setup
> in place is the first step for anything else.

I guess you mean when isnan is available but broken, since we do not
support platforms without IEEE 754 support ? I want to take care of this
for my umathmodule cleaning (all the configuration checks/replacements
are in place; if we want to be paranoid, we could check whether isnan
works for all types if found on the system).

cheers,

David
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion