mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Tweak atan2
This commit is contained in:
@@ -1734,6 +1734,12 @@ T atan(const T &x) {
|
||||
return static_cast<T>(atan(x));
|
||||
}
|
||||
|
||||
template <typename T, std::enable_if_t<!NumTraits<T>::IsComplex, int> = 0>
|
||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T atan2(const T& y, const T& x) {
|
||||
EIGEN_USING_STD(atan2);
|
||||
return static_cast<T>(atan2(y, x));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||
T atanh(const T &x) {
|
||||
|
||||
Reference in New Issue
Block a user