Python interface for the Cephes library.
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.
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
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
ncephes-1.0.26.tar.gz
(181.9 kB
view hashes)
Built Distributions
Close
Hashes for ncephes-1.0.26-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520b045ba7025d78ce8eb12a3177bd3b2b67e85344863f3d527f5a240e8915d2 |
|
MD5 | fe15ba4df892819eeeb4c686de4269d0 |
|
BLAKE2b-256 | 86aebb52fae2207eafa77051d8926712b6accba4e2e157c14cfa476a05645317 |
Close
Hashes for ncephes-1.0.26-cp36-cp36m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf6836017a0976fc1a3fa6510d89d2e5b7a4e327529819f7b89e92e4f79fb53b |
|
MD5 | 334195fc1be8f016f2d4f2fce5692071 |
|
BLAKE2b-256 | 1e7383f883a04891b9dac50284b630046c3dac484a76657e71ef881ac62c30ab |
Close
Hashes for ncephes-1.0.26-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84390e036f0706087394135d7fce3b84a23cbcadbbc9dc958628d498b198d27c |
|
MD5 | bb9ab25583946ec5c97f4a364ae393de |
|
BLAKE2b-256 | 2524ef17011fe87c2605df183be6a47d990d42022fb5db865f8b718dee2373db |
Close
Hashes for ncephes-1.0.26-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce89c6bc37917556b3314f5615675dfc531d3f360a025aa68bf488b8f8d1ac26 |
|
MD5 | eed7b5f55f8865db240b9391215a88f6 |
|
BLAKE2b-256 | 9695f88520cf12ea8f3e57a89f8a2b07d42980e0c8eeb9c3f6bcc4cde9a8aaa5 |
Close
Hashes for ncephes-1.0.26-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c550f8d0e0d6e1e21e1ee798c7d33f2b530cc87e2110caa16a45b835e2ea6795 |
|
MD5 | da917a414a792679a8ee93dbc57dec84 |
|
BLAKE2b-256 | 52e0d0c09ed9b6624283d056047eca68ad2c40d3e9942905ec9dafb5168c8938 |
Close
Hashes for ncephes-1.0.26-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7105642dea09dade9729840b93d34ae63ba4bdb5c5e2793a6c9d4131c57f79d |
|
MD5 | b6dbe4876952c6fe9d81ddaebe8236da |
|
BLAKE2b-256 | 0e67406f1e343e34e2ed1caa129d1f36a812a879da77d3f24e2f735f17179ca4 |
Close
Hashes for ncephes-1.0.26-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f0d2d5c330691f99090c0fb2364d67545b635d703607ff184f20c6a96b37b32 |
|
MD5 | 0873d9e5b6183cfce20ebd6d92dde352 |
|
BLAKE2b-256 | 8619f7fd8bba84b9b6cd5e79f426b61c6f99c1bbbfd7f3d5da546f21dbf3c13f |