scott-maddox / fdint

Precise and fast Fermi-Dirac integrals of integer and half integer order.
BSD 3-Clause "New" or "Revised" License
17 stars 7 forks source link

Make access to individual functions easier #6

Closed scott-maddox closed 9 years ago

scott-maddox commented 9 years ago

They are much faster, as shown by this benchmark: $ python -m timeit -s "from fdint import _fd; import numpy; x=numpy.linspace(-100,100,1000)" "_fd.fd1h(x)" 1000000 loops, best of 3: 0.29 usec per loop $ python -m timeit -s "from fdint import fdk; import numpy; x=numpy.linspace(-100,100,1000)" "fdk(0.5, x)" 100000 loops, best of 3: 15.2 usec per loop

scott-maddox commented 9 years ago

fixed in v1.1