Skip to content

Add a PacketMath version of the Error Function (erf).

Submitted by Pedro Gonnet

Assigned to Rasmus Munk Larsen

Link to original bugzilla bug (#1699)
Version: 3.4 (development)

Description

Created attachment 936

Patch created with "hg export tip".

Add a PacketMath version of the Error Function (erf).

This is build along the same lines as the tanh implementation, added it in the same way in the same places. No idea if this is the right way to do it.

To make this work, I had to move the packet definition of erf from SpecialFunctionsPacketMath.h to GenericPacketMath.h, probably since the former is not included in the right places.

I've also added the default implementations of tanh and erf for float packets to the other architectures that seem able to support it and don't yet have a custom implementation.

Patch 936, "Patch created with "hg export tip".":

eigen_hg.patch

Depends on

#1687