diff options
author | guoqiangqi <425418567@qq.com> | 2020-10-15 11:34:17 +0800 |
---|---|---|
committer | Guoqiang QI <425418567@qq.com> | 2020-10-19 00:51:42 +0000 |
commit | 4a77eda1fdaebd7f92d587dfc0158a20dc0d2625 (patch) | |
tree | 43225000c08e7520205c60906abb8a84f382f3ab /Eigen | |
parent | d9f0d9eb766e863c55129c7cc6fcc6ad192294f4 (diff) |
remove unnecessary specialize template of pexp for scale float/double
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index dcb21a543..2ecb64407 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -361,10 +361,6 @@ Packet pexp_float(const Packet _x) return pmax(pldexp(y,m), _x); } -// make it the default path for scalar float -template<> -EIGEN_DEVICE_FUNC inline float pexp(const float& a) { return pexp_float(a); } - template <typename Packet> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED @@ -433,10 +429,6 @@ Packet pexp_double(const Packet _x) return pmax(pldexp(x,fx), _x); } -// make it the default path for scalar double -template<> -EIGEN_DEVICE_FUNC inline double pexp(const double& a) { return pexp_double(a); } - // The following code is inspired by the following stack-overflow answer: // https://stackoverflow.com/questions/30463616/payne-hanek-algorithm-implementation-in-c/30465751#30465751 // It has been largely optimized: |