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

Home » Public Forums » archive » Re: manipulating structures
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: manipulating structures [message #53355 is a reply to message #53354] Sun, 08 April 2007 11:40 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.2082e11919d147fa989f1c@news.frii.com>,
David Fanning <news@dfanning.com> wrote:

> Kenneth P. Bowman writes:
>
>> There is one special case that you have to watch out for when using
>> TOTAL with the /NAN keyword. If *all* of the elements are NaNs, the
>> result returned is not a NaN, but a zero. I think this is a serious
>> implementation bug because it renders the /NAN keyword useless in
>> most circumstances.
>
> Has this been reported to ITTVIS, Ken?

We discussed this in this group several years ago, and *I think* I
had some communication with them about this. The response was to add
a note in the TOTAL documentation pointing out this behavior.

The rules for IEEE arithmetic say that the result of any operation
involving a NaN is a NaN. That is not true in the case of TOTAL. If
you sum an array that is all NaNs, the result is zero.

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: map_proj_init
Next Topic: Re: counting rows

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

Current Time: Sat Oct 11 03:25:23 PDT 2025

Total time taken to generate the page: 0.61775 seconds