Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Excluding NAN entries when summing an array

Reply
Thread Tools

Excluding NAN entries when summing an array

 
 
RS
Guest
Posts: n/a
 
      09-21-2006
Hi all, what is a safe and efficient way to sum the contents of an array
or a matrix, skipping any possible NANs or INFs?

Thanks,
RS
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting int to float gives nan (int value is definitely non-nan) googlegroups11@mailinator.com C Programming 6 03-19-2009 03:59 PM
MS Excel question - AVERAGE() but excluding zero-value entries Steve Freides Computer Support 9 10-29-2006 03:29 AM
Excluding NAN entries when summing an array RS C++ 1 09-21-2006 08:45 PM
max(NaN,0) should be NaN norb1@yahoo.com C Programming 61 09-08-2006 05:41 PM
Counting and summing elements in an array? Help! Alf P. Steinbach C++ 2 02-05-2004 09:27 AM



Advertisments