Don't use M_PI since it's only guaranteed to be defined in Eigen/Geometry

This commit is contained in:
Deanna Hood
2015-04-08 13:59:18 -05:00
parent 83e5b7656b
commit 085aa8e601
2 changed files with 3 additions and 2 deletions

View File

@@ -421,7 +421,8 @@ struct round_retval
EIGEN_DEVICE_FUNC
static inline RealScalar run(const Scalar& x)
{
return (x < 0.0) ? M_PI : 0.0; }
const double pi = std::acos(-1.0);
return (x < 0.0) ? pi : 0.0; }
};
template<typename Scalar>