[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: where() and IEEE NaN
- Subject: Re: where() and IEEE NaN
- From: badastro(at)smart.net (Philip Plait)
- Date: 8 Nov 1999 18:10:17 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: Smartnet Internet Services, LLC of Laurel, Maryland
- References: <7vv1j3$6ro$1@ra.nrl.navy.mil> <7vv5ot$573$1@agate.berkeley.edu> <7vv7bd$ifa$1@news.smart.net> <7vvkuf$hk4@post.gsfc.nasa.gov> <8026al$hlo$1@agate.berkeley.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:17169
In comp.lang.idl-pvwave Eric J. Korpela <korpela@islay.ssl.berkeley.edu> wrote:
> In article <7vvkuf$hk4@post.gsfc.nasa.gov>,
> William Thompson <thompson@orpheus.nascom.nasa.gov> wrote:
> >Isn't it simpler (and faster) to say
> >
> > IDL> print,where(a ne a)
> It is on IEEE compliant platforms. But IDL on some platforms
> is not IEEE compliant. My solution is not to use those platforms.
I had a DEC Alpha for a few years that some, um, interesting
effects in IDL. I'm on a sparc now and have no problems.
I cannot remember the details now, but a couple of years ago we had
this NaN problem. I typed in print,where(a ne a) and it barfed. So
I did the workaround of hh = where(a-a ne 0) and it worked.
* * * * * The Bad Astronomer * * * *
Phil Plait badastro@badastronomy.com
The Bad Astronomy Web Page: http://www.badastronomy.com