comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » NaNs all over the place
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
NaNs all over the place [message #54860] Tue, 17 July 2007 04:01
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
OK this one is embarassing, but here goes:

I've written a neural network routine in IDL which, on my laptop (XP IDL
6.3) chugs along just fine. On my desktop (same OS, same IDL version) it
chugs along fine, too, but then (suddenly) slows down. Setting
breakpoints, I find that the slowdown is due to the fact that it's
breeding NaNs. Since IDL doesn't throw an exception, I haven't yet found
out what's going on. Can I make IDL tell me the code line at which the
first undefined operation generating a NaN occurs, or do I have to
sprinkle the code with IF ~FINITE(A) - type statements?

I had a similar experience long ago with Delphi (object Pascal) and it
turned out that I was making (what else?) a pointer error. On one
machine it didn't overwrite anything important, on the other it did and
crashed. Is this kind of behavior even _possible_ in IDL, i.e., can
pointer errors generate NaNs in one memory configuration and not in
another? Or should I buy a new desktop?

Any tips would be highly appreciated.

Mort
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: delete keys in IDL
Next Topic: Re: NaNs all over the place

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:12:36 PDT 2025

Total time taken to generate the page: 0.00520 seconds