diff options
author | Deanna Hood <deanna.m.hood@gmail.com> | 2015-03-22 06:04:31 +1000 |
---|---|---|
committer | Deanna Hood <deanna.m.hood@gmail.com> | 2015-03-22 06:04:31 +1000 |
commit | 83e5b7656b6e3d68539584baf703ad30e96fa0de (patch) | |
tree | 1830092438a590097bf3e9958f3aff0c15af855e /Eigen/src/Core/MathFunctions.h | |
parent | 4bab4790c0b0fd12d1ef1f5e200962e59d49552c (diff) |
Use M_PI instead of acos(-1) for pi
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 734a5e373..787634081 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -421,8 +421,7 @@ struct round_retval EIGEN_DEVICE_FUNC static inline RealScalar run(const Scalar& x) { - const double pi = std::acos(-1.0); - return (x < 0.0) ? pi : 0.0; } + return (x < 0.0) ? M_PI : 0.0; } }; template<typename Scalar> |