Erf is listed in the documentation at http://eigen.tuxfamily.org/dox/namespaceEigen.html#ac336e0eba2b12dca8b01da1a006566c3 but using erf on Eign::VectorXd will not compile. I think the error can be traced to a lack of scalar_erf_op in the file Core/functors/UnaryFunctors.h I have written the required templates to invoke std::erf by using the trigonometric functions as a guide. The fix also edits: Core/GenericPacketMath.h MathFunctions.h
On the one hand, `erf` is only supposed to work with `Array` types. On the other hand, you need to #include <unsupported/Eigen/SpecialFunctions> Demo: https://godbolt.org/z/mHmE6X The latter could definitely be documented better (also for related functions). Or we could actually just move the entire SpecialFunctions module into Eigen/Core. --> DecisionNeeded
Ok to the first (I was using the .array() member function). I didn't see anything about including an unsupported header. Thank you!
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1775.