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

Home » Public Forums » archive » Re: Floating Underflow/Overflow
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Floating Underflow/Overflow [message #27356 is a reply to message #27319] Thu, 18 October 2001 01:05 Go to previous message
bente is currently offline  bente
Messages: 13
Registered: October 2001
Junior Member
Hi, again.

Wow didn�t expected to get so much response ;-)


> On the other hand, the performance of IDL falls down rather badly when
> dealing with conditional tests on large arrays, especially when FOR
> loops cannot be avoided. Even using WHERE() usually makes a pretty
> large performance hit.

The peformance is the large problem I have, my PC isn�t so fast
(350MHz with only 128MB Ram. And i have to work through a 256x256x128
floating Point array with 3 FOR-Loops (i need the complete Indizes to
get the Radius from a specific point to the current Voxel (don�t no
some faster way to get this)

It�s not so that this lasts hours then, but i gets annoying if you
want to change a value a bit and then wait several minutes for the
result

> One little trick for avoiding underflows in exponentials might go like
> this. If you wish to compute Y = EXP(-X), for large X, then you can
> usually use a "mask" variable to avoid the underflow.
>
> MASK = (X LT UPPER_LIMIT)
> Y = MASK * EXP(-X*MASK)


I�ll try this out, thanks for the hint.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: INTERPOLATE note
Next Topic: Re: bug in contour?

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

Current Time: Sat Nov 29 15:30:59 PST 2025

Total time taken to generate the page: 1.03911 seconds