From 437191186165005e0b619c069239ac2913fd2c41 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 8 Dec 2014 16:44:34 +0100 Subject: Remove useless and non standard numext::atanh2 function. --- Eigen/src/Core/MathFunctions.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 72d6acfc1..16ad2dc7e 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -708,44 +708,6 @@ inline int log2(int x) } // end namespace numext - -namespace internal { - -/**************************************************************************** -* Implementation of atanh2 * -****************************************************************************/ - -template -struct atanh2_impl -{ - static inline Scalar run(const Scalar& x, const Scalar& r) - { - EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar) - typedef typename NumTraits::Real RealScalar; - return numext::log1p(RealScalar(2) * x / (r - x)) / RealScalar(2); - } -}; - -template -struct atanh2_retval -{ - typedef Scalar type; -}; - - -} // end namespace internal - -namespace numext { - -template -EIGEN_DEVICE_FUNC -inline EIGEN_MATHFUNC_RETVAL(atanh2, Scalar) atanh2(const Scalar& x, const Scalar& y) -{ - return EIGEN_MATHFUNC_IMPL(atanh2, Scalar)::run(x, y); -} - -} // end namespace numext - namespace internal { /**************************************************************************** -- cgit v1.2.3