ncephes 1.0.23
pip install ncephes==1.0.23
Released:
Python interface for the Cephes library.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Danilo Horta
- Tags cephes, math, numba
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
Project description
This package provides a python interface for the Cephes library. It also supports Numba and its nopython mode.
Usage
from ncephes import cprob
print(cprob.incbet(1., 3., 0.3))
prints 0.657.
You can also call them inside a numba function
from ncephes import cprob
from numba import jit
@jit
def numba_incbet(a, b, x):
return cprob.incbet(a, b, x)
print(numba_incbet(1., 3., 0.3))
and with nopython mode and nogil enabled
from ncephes import cprob
from numba import jit
incbet = cprob.incbet
@jit(nogil=True, nopython=True)
def numba_incbet(a, b, x):
return incbet(a, b, x)
print(numba_incbet(1., 3., 0.3))
One can also statically link the compiled Cephes libraries ncprob and ncellf. Please, have a peek at the examples/prj_name for a minimalistic example.
Install
The recommended way of installing it is via conda
conda install -c conda-forge ncephes
An alternative way would be via pip
pip install ncephes
Running the tests
After installation, you can test it
python -c "import ncephes; ncephes.test()"
as long as you have pytest.
Authors
Danilo Horta - https://github.com/Horta
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Danilo Horta
- Tags cephes, math, numba
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ncephes-1.0.23.tar.gz
.
File metadata
- Download URL: ncephes-1.0.23.tar.gz
- Upload date:
- Size: 181.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a3e9aae23b62e64eb1a8e2dec63a3e4204e0aff2202932e49ccd7927c8a5500 |
|
MD5 | 2e9657607b04c2185a9b2a60622dbc16 |
|
BLAKE2b-256 | 69e14a7daa02c40c83ed9696ed145e2c5abf138b72e1b8fe54a37dd802498bc0 |