COIN-OR::LEMON - Graph Library

Changeset 493:81627fa1b007 in lemon for lemon/math.h


Ignore:
Timestamp:
01/14/09 16:55:29 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Own support for isnan()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/math.h

    r463 r493  
    5656  const long double SQRT1_2 = 0.7071067811865475244008443621048490L;
    5757
     58  ///Check whether the parameter is NaN or not
     59 
     60  ///This function checks whether the parameter is NaN or not.
     61  ///Is should be equivalent with std::isnan(), but it is not
     62  ///provided by all compilers.
     63  inline bool isnan(double v)
     64    {
     65      return v!=v;
     66    }
    5867
    5968  /// @}
Note: See TracChangeset for help on using the changeset viewer.