https://github.com/person142/numba_special
Numba overloads for SciPy's special functions
https://github.com/person142/numba_special
numba scipy special-functions
Last synced: 20 days ago
JSON representation
Numba overloads for SciPy's special functions
- Host: GitHub
- URL: https://github.com/person142/numba_special
- Owner: person142
- License: bsd-3-clause
- Created: 2019-07-04T07:09:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T04:13:46.000Z (almost 6 years ago)
- Last Synced: 2025-03-25T10:42:31.181Z (about 1 month ago)
- Topics: numba, scipy, special-functions
- Language: Python
- Size: 57.6 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Numba Special
[](https://circleci.com/gh/person142/numba_special/tree/master) [](https://numba-special.readthedocs.io/en/latest/?badge=latest)
Numba special allows SciPy's special functions to be used in
Numba.## How to use it
```python
>>> import numba
>>> import scipy.special as sc
>>> import numba_special # The import generates Numba overloads for special
>>> @numba.njit
... def gamma_plus_1(x):
... return sc.gamma(x) + 1.0
...
>>> gamma_plus_1(5.0)
25.0
```For detailed information on which functions can be used from Numba,
check the
[documentation](https://numba-special.readthedocs.io/en/latest/).## Installing
Numba special depends on SciPy and Numba. Until the fix for
[this issue](https://github.com/numba/numba/issues/4133) is
included in a Numba release, `numba_special` must be installed
against the master branch of Numba.