Optimized implementation of the tanh function for SSE

This commit is contained in:
Benoit Steiner
2016-02-10 08:52:30 -08:00
parent 2d523332b3
commit bfb3fcd94f
2 changed files with 49 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ template<> struct packet_traits<float> : default_packet_traits
HasExp = 1,
HasSqrt = 1,
HasRsqrt = 1,
HasTanh = EIGEN_FAST_MATH,
HasBlend = 1
#ifdef EIGEN_VECTORIZE_SSE4_1