Changeset 12527
- Timestamp:
- 06/25/12 12:10:34 (13 years ago)
- Location:
- issm/trunk-jpl/src/c/shared/Numerics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Numerics/isnan.cpp
r12476 r12527 2 2 #ifdef _INTEL_WIN_ 3 3 4 int isnan(IssmDouble x){ 5 if (x!=x)return 1; 6 else return 0; 4 int isnan(IssmPDouble x){ 5 return (x!=x)?1:0; 7 6 } 8 7 #endif -
issm/trunk-jpl/src/c/shared/Numerics/isnan.h
r12476 r12527 7 7 8 8 #ifdef _INTEL_WIN_ 9 int isnan(Issm Double X);9 int isnan(IssmPDouble X); 10 10 #endif 11 11 12 template <class T> int xIsNan(const T& X) { 13 return isnan(X); 14 } 15 16 #ifdef _HAVE_ADOLC_ 17 template <> int xIsNan<adouble> (const adouble& X) { 18 return isnan(X.getValue()); 19 } 20 #endif 12 21 #endif 13 22
Note:
See TracChangeset
for help on using the changeset viewer.