[Trilinos-Users] FW: [InfoVis] nan

Wylie, Brian bnwylie at sandia.gov
Tue Sep 8 12:49:25 MDT 2009


FWIW,

Recently VTK has put in general cross-platform functionality for NAN, you might want to emulate that work. Ken Moreland (kmorel at sandia.gov<mailto:kmorel at sandia.gov>) is the main contact.

  Brian Wylie - Org 1424
  Sandia National Laboratories
  MS 1323 - Building CSRI/242
  (505)844-2238 FAX(505)284-2518
       _______ __
      /_  __(_) /_____ _____
       / / / / __/ __ `/ __ \
      / / / / /_/ /_/ / / / /
     /_/ /_/\__/\__,_/_/ /_/
            Informatics Toolkit

From: Dave Partyka [mailto:dave.partyka at kitware.com]
Sent: Thursday, September 03, 2009 5:22 PM
To: Wylie, Brian
Cc: infovis at public.kitware.com
Subject: Re: [InfoVis] nan

Sorry prematurely hit send...

Ken's stuff is much better as it does some system introspection/try compiles to determine if there is a system provided IsNan and IsInf and if not it provides an IEEE numeric fall back. It even works on Borland! ;-)

On Thu, Sep 3, 2009 at 7:10 PM, Dave Partyka <dave.partyka at kitware.com<mailto:dave.partyka at kitware.com>> wrote:
Yes It is Ken, See the bottom of vtkMath.cxx and vtkMathConfigure.h.in<http://vtkMathConfigure.h.in>.
On Thu, Sep 3, 2009 at 6:56 PM, Wylie, Brian <bnwylie at sandia.gov<mailto:bnwylie at sandia.gov>> wrote:
I recall some discussion about NAN's on various platforms recently (Ken Moreland?). I'm looking at this in Trilinos and I'm thinking there must be a better way....

#ifndef __sun
// This is an intentional computation of NaN.
const float  Teuchos::flt_nan = +returnFloatZero()/returnFloatZero();
const double Teuchos::dbl_nan = +returnDoubleZero()/returnDoubleZero();
#endif

  Brian Wylie - Org 1424
  Sandia National Laboratories
  MS 1323 - Building CSRI/242
  (505)844-2238 FAX(505)284-2518
       _______ __
      /_  __(_) /_____ _____
       / / / / __/ __ `/ __ \
      / / / / /_/ /_/ / / / /
     /_/ /_/\__/\__,_/_/ /_/
            Informatics Toolkit




_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/infovis


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20090908/cdc78d10/attachment.html 


More information about the Trilinos-Users mailing list