aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/MathFunctions.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-04 11:09:25 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-04 11:09:25 -0700
commit1108b4f21836d52b50e4ec10a6e0eec027eda04d (patch)
tree8ea8c1817e9dc9a3f9775dc53b21e0ebdccefe15 /Eigen/src/Core/MathFunctions.h
parent2b457f8e5ec2bd38ce5049bd9220d3f37c7fa1ff (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.h2
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);
}