This bugzilla service is closed. All entries have been migrated to
Bug 1775 - erf does not have a scalar_erf_op in Core/functors/UnaryFunctors.h
Summary: erf does not have a scalar_erf_op in Core/functors/UnaryFunctors.h
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - expression templates (show other bugs)
Version: 3.3 (current stable)
Hardware: All All
: Normal Documentation
Assignee: Nobody
Depends on:
Blocks: 3.x
  Show dependency treegraph
Reported: 2019-11-11 17:42 UTC by Matthew Ludkin
Modified: 2019-12-04 18:54 UTC (History)
4 users (show)


Description Matthew Ludkin 2019-11-11 17:42:47 UTC
Erf is listed in the documentation at
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:
Comment 1 Christoph Hertzberg 2019-11-11 17:59:05 UTC
On the one hand, `erf` is only supposed to work with `Array` types. On the other hand, you need to

   #include <unsupported/Eigen/SpecialFunctions>


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
Comment 2 Matthew Ludkin 2019-11-11 18:20:58 UTC
Ok to the first (I was using the .array() member function). I didn't see anything about including an unsupported header. 
Thank you!
Comment 3 Nobody 2019-12-04 18:54:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to'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:

Note You need to log in before you can comment on or make changes to this bug.