diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-04 11:09:25 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-04 11:09:25 -0700 |
commit | 1108b4f21836d52b50e4ec10a6e0eec027eda04d (patch) | |
tree | 8ea8c1817e9dc9a3f9775dc53b21e0ebdccefe15 /Eigen/src/Core/MathFunctions.h | |
parent | 2b457f8e5ec2bd38ce5049bd9220d3f37c7fa1ff (diff) |
Fixed the signature of numext::abs to make it compatible with complex numbers
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 000cafee7..e6c7dfa08 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -1034,7 +1034,7 @@ double tan(const double &x) { return ::tan(x); } template<typename T> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE -T abs(const T &x) { +typename NumTraits<T>::Real abs(const T &x) { EIGEN_USING_STD_MATH(abs); return abs(x); } |