Factorize the 4 copies of tanh implementations, make numext::tanh consistent with array::tanh, enable fast tanh in fast-math mode only.

This commit is contained in:
Gael Guennebaud
2016-08-23 14:23:08 +02:00
parent 82147cefff
commit a4c266f827
6 changed files with 89 additions and 193 deletions

View File

@@ -329,6 +329,7 @@ using std::ptrdiff_t;
#include "src/Core/NumTraits.h"
#include "src/Core/MathFunctions.h"
#include "src/Core/GenericPacketMath.h"
#include "src/Core/MathFunctionsImpl.h"
#if defined EIGEN_VECTORIZE_AVX
// Use AVX for floats and doubles, SSE for integers