aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-09-22 22:33:18 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-09-22 22:33:18 +0200
commit2ada122bc68c03452ec2245d76609a117ec5272b (patch)
treeecdcd507f4de36c9b217205d17622dbe94d70e9b /Eigen
parent8f2bdde37385f59c004b8a18e65173f3cf17663e (diff)
parent50e3bbfc90e6f7c90a0b3fd046e09a1bb80b28a5 (diff)
merge
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/MathFunctions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h
index fa322aca7..4d8f8970e 100644
--- a/Eigen/src/Core/MathFunctions.h
+++ b/Eigen/src/Core/MathFunctions.h
@@ -1049,12 +1049,12 @@ double abs(const double &x) { return ::fabs(x); }
template <> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
float abs(const std::complex<float>& x) {
- return ::hypotf(real(x), imag(x));
+ return ::hypotf(x.real(), x.imag());
}
template <> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
double abs(const std::complex<double>& x) {
- return ::hypot(real(x), imag(x));
+ return ::hypot(x.real(), x.imag());
}
#endif