mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Fixed the signature of numext::abs to make it compatible with complex numbers
This commit is contained in:
parent
2b457f8e5e
commit
1108b4f218
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user