diff options
author | 2015-06-11 21:45:02 +0200 | |
---|---|---|
committer | 2015-06-11 21:45:02 +0200 | |
commit | 84d103bee88d8a3ba7ccdeecb296ebae6c6920ff (patch) | |
tree | 07f94b97d125f482b4cfc3699234d13c9a3e2e6f /Eigen/src/Core/MathFunctions.h | |
parent | 916ef52fff01aff0567f177e1739d5b6d59b51fc (diff) |
Enable C++11 math function in a more conservative manner.
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index e0f7f4e61..dfc651908 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -367,7 +367,7 @@ inline NewType cast(const OldType& x) * Implementation of round * ****************************************************************************/ -#if EIGEN_HAS_C99_MATH +#if EIGEN_HAS_CXX11_MATH template<typename Scalar> struct round_impl { static inline Scalar run(const Scalar& x) @@ -401,7 +401,7 @@ struct round_retval * Implementation of arg * ****************************************************************************/ -#if EIGEN_HAS_C99_MATH +#if EIGEN_HAS_CXX11_MATH template<typename Scalar> struct arg_impl { static inline Scalar run(const Scalar& x) @@ -458,7 +458,7 @@ struct log1p_impl } }; -#ifdef EIGEN_HAS_C99_MATH +#if EIGEN_HAS_CXX11_MATH template<typename Scalar> struct log1p_impl<Scalar, false> { static inline Scalar run(const Scalar& x) @@ -784,7 +784,7 @@ template<typename T> EIGEN_DEVICE_FUNC bool (isfinite)(const T& x) { - #ifdef EIGEN_HAS_C99_MATH + #if EIGEN_HAS_CXX11_MATH using std::isfinite; return isfinite(x); #else @@ -803,7 +803,7 @@ template<typename T> EIGEN_DEVICE_FUNC bool (isnan)(const T& x) { - #ifdef EIGEN_HAS_C99_MATH + #if EIGEN_HAS_CXX11_MATH using std::isnan; return isnan(x); #else @@ -822,7 +822,7 @@ template<typename T> EIGEN_DEVICE_FUNC bool (isinf)(const T& x) { - #ifdef EIGEN_HAS_C99_MATH + #if EIGEN_HAS_CXX11_MATH using std::isinf; return isinf(x); #else |