From 79ff65d224445d415e79f719c495c77f27aa7063 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Fri, 11 Feb 2022 13:56:22 +0100 Subject: [PATCH] added SIMD-wrapper for 'erf' --- libsrc/core/simd_generic.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libsrc/core/simd_generic.hpp b/libsrc/core/simd_generic.hpp index 1ad4ea99..b40607a4 100644 --- a/libsrc/core/simd_generic.hpp +++ b/libsrc/core/simd_generic.hpp @@ -604,6 +604,12 @@ namespace ngcore return ngcore::SIMD([a](int i)->double { return log(a[i]); } ); } + using std::erf; + template + NETGEN_INLINE ngcore::SIMD erf (ngcore::SIMD a) { + return ngcore::SIMD([a](int i)->double { return erf(a[i]); } ); + } + using std::pow; template NETGEN_INLINE ngcore::SIMD pow (ngcore::SIMD a, double x) {