[SciPy-Dev] Speeding up scipy.special.erf()?

Pauli Virtanen pav at iki.fi
Fri Mar 20 17:08:13 EDT 2015


20.03.2015, 20:29, Will Adler kirjoitti:
[clip]
> Is there anything that can be done to speed up SciPy’s erf()?

Possibly.

https://github.com/scipy/scipy/blob/master/scipy/special/cephes/ndtr.c#L483

The simplest thing would probably be just to write the Pade approximant
in a form the C compiler can inline. erf and erfc are also in C99, so
glibc may have a fast implementation.




More information about the SciPy-Dev mailing list