Enable vectorized erf<double>(x) for SSE and AVX, which was accidentally removed in merge request 1750.

This commit is contained in:
Rasmus Munk Larsen 2024-11-19 22:14:29 +00:00
parent e7c799b7c9
commit 6c6ce9d06b
2 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,7 @@ struct packet_traits<double> : default_packet_traits {
#endif #endif
HasTanh = EIGEN_FAST_MATH, HasTanh = EIGEN_FAST_MATH,
HasLog = 1, HasLog = 1,
HasErf = 1,
HasErfc = 1, HasErfc = 1,
HasExp = 1, HasExp = 1,
HasSqrt = 1, HasSqrt = 1,

View File

@ -217,6 +217,7 @@ struct packet_traits<double> : default_packet_traits {
HasCos = EIGEN_FAST_MATH, HasCos = EIGEN_FAST_MATH,
HasTanh = EIGEN_FAST_MATH, HasTanh = EIGEN_FAST_MATH,
HasLog = 1, HasLog = 1,
HasErf = EIGEN_FAST_MATH,
HasErfc = EIGEN_FAST_MATH, HasErfc = EIGEN_FAST_MATH,
HasExp = 1, HasExp = 1,
HasSqrt = 1, HasSqrt = 1,