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.22.tar.gz
(181.9 kB
view hashes)
Built Distributions
Close
Hashes for ncephes-1.0.22-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eefe779ca0f18e63b83f1a8f0b56055fdb9c00525c0d9726f86f994da7a71763 |
|
MD5 | 54b478995241d1075be1c969686dfeb6 |
|
BLAKE2b-256 | f24f40b57676e12e3181e59e70ca16706edbbefe7efd59621943bfc281e6ebc9 |
Close
Hashes for ncephes-1.0.22-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffde008c6ff505adf31076bed65e3d85ca917ea4bd47f219fc5bc43f1ec94357 |
|
MD5 | b35649a09781446ddc61cef290be1d7f |
|
BLAKE2b-256 | f38dec68e20b1b6c540ea28da73ef46be300a74de81767bb059e7e13385edec8 |
Close
Hashes for ncephes-1.0.22-cp36-cp36m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a1fb1ce0d54cc2ec8947beb2ce706fc75c06a08818f6ca2dbf4c795126a38c |
|
MD5 | 8e05cdfd618bd5436b93f376ec7f2d68 |
|
BLAKE2b-256 | 3f2339f90683f2899182e03871ec01c0b1bafba2701052bc669469e62c27e3ec |
Close
Hashes for ncephes-1.0.22-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b8f6b1e68ffff3c84c3ba7cdda9afa3386d981f7f259055941e1cc3ddd8f3c |
|
MD5 | d6a30aa7cf77e46d0eec56657f791271 |
|
BLAKE2b-256 | aeba8762eb750d0e0f62f704f2ace388adf73ecdd50dde52c75733b8c73c8362 |
Close
Hashes for ncephes-1.0.22-cp35-cp35m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2faa9bf5a3ddfdcc39867a4bde5be23635aa670a08a3e128aa88c567e190b809 |
|
MD5 | 6ea482147646af6d60797adf4cbb5dd6 |
|
BLAKE2b-256 | ee85404b7e1a99addbb3a0d18869f106a8f48943da82a1cbe61ff10684070cee |
Close
Hashes for ncephes-1.0.22-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17626022d16b8a3ed29157fd1900f4de4b0260852321ad93982dbcd2cd6a390e |
|
MD5 | 4b6ddd320f3a20c264c449f865271288 |
|
BLAKE2b-256 | 7241e3ec746fc2a1b1d0af622e01063a552ca4d520a3f47e921072e5ef62e6b8 |
Close
Hashes for ncephes-1.0.22-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d1e91ce36109cbd79b70fc260b8d47e294f5a688a0603f688cdad700521621d |
|
MD5 | fec6aadc6cdbe619d274c52a9daecaeb |
|
BLAKE2b-256 | e7386961db2e52923ed08445b9f1d49cad14ebc44b29248b0a34824426eaf073 |
Close
Hashes for ncephes-1.0.22-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b0926ac63db7cfe4752b28a9b83915e9ac7611b16fd6b9e0e1e4a8d9f0ef076 |
|
MD5 | 00891de8ea1513302cbf3b7097b02662 |
|
BLAKE2b-256 | cd63730a3f55a841a25c8b7b1548e4918936087968d0d5c0039789555f4c94eb |
Close
Hashes for ncephes-1.0.22-cp27-cp27m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d1fe4d0f39a6826feef263060b8a4094f1ed422f61d77971439985f143c4ea |
|
MD5 | 10694b5687a1fe2be77d50886f968f25 |
|
BLAKE2b-256 | afe4490ad47bdf08dc7402fe94bff01ba5effdf960cab69475d1377822de1ef9 |
Close
Hashes for ncephes-1.0.22-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12fa39a830640ae7881313765254341b50319d3a20a3cb7cbed21686770961a |
|
MD5 | f421f467661ce6d4aa6ef226f05432c1 |
|
BLAKE2b-256 | 7872634415a6d8fa0d7032794867cc0e3a4a7b89abb15f25b8e77dc498e45a03 |