erf does not have a scalar_erf_op in Core/functors/UnaryFunctors.h

Submitted by Matthew Ludkin

Assigned to Nobody

Link to original bugzilla bug (#1775)
Version: 3.3 (current stable)

Description

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

Blocking

#1608

Edited by Eigen Bugzilla