source: issm/branches/trunk-jpl-damage/src/c/shared/Numerics/isnan.h@ 12878

Last change on this file since 12878 was 12878, checked in by cborstad, 13 years ago

merged trunk-jpl into trunk-jpl-damage through revision 12877

File size: 329 bytes
Line 
1/*!\file: isnan.h
2 * \brief: only used for intel compiler.
3 */
4
5#ifndef _XISNAN_H_
6#define _XISNAN_H_
7
8#include <cmath>
9
10template <class T> int xIsNan(const T& X) {
11#ifdef _INTEL_WIN_
12 return (X!=X)?1:0;
13#else
14 return isnan(X);
15#endif
16}
17
18#ifdef _HAVE_ADOLC_
19template <> int xIsNan<adouble> (const adouble& X);
20#endif
21
22#endif
Note: See TracBrowser for help on using the repository browser.