mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Vectorize erfc(x) for double and improve erfc(x) for float.
This commit is contained in:
@@ -117,6 +117,8 @@ void packetmath_real() {
|
||||
#if EIGEN_HAS_C99_MATH
|
||||
CHECK_CWISE1_IF(internal::packet_traits<Scalar>::HasLGamma, std::lgamma, internal::plgamma);
|
||||
CHECK_CWISE1_IF(internal::packet_traits<Scalar>::HasErf, std::erf, internal::perf);
|
||||
// FIXME(rmlarsen): This test occasionally fails due to difference in tiny subnormal results
|
||||
// near the underflow boundary. I am not sure which version is correct.
|
||||
CHECK_CWISE1_IF(internal::packet_traits<Scalar>::HasErfc, std::erfc, internal::perfc);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user