Jacobi Poly
Documentation: https://jacobi-poly.readthedocs.io
Source Code: https://github.com/34j/jacobi-poly
Compute Jacobi polynomial from order 0 to N efficiently in NumPy / PyTorch / JAX / array API
Installation
Install this via pip (or your favourite package manager):
pip install jacobi-poly
Usage
from jacobi_poly import jacobi_all, gegenbauer_all, legendre_all
import torch
# Both CPU (Numba) and CUDA (Numba for CUDA) are supported.
torch.set_default_device("cuda")
x = torch.asarray(1.0) # the points to evaluate at
alpha = torch.asarray(2.0)
beta = torch.asarray(3.0)
n_end = 4 # from order 0 to order 3
# Jacobi polynomial from order 0 to 3
jacobi = jacobi_all(x, alpha=alpha, beta=beta, n_end=n_end)
print(jacobi)
# tensor([ 1., 3., 6., 10.], device='cuda:0')
# Gegenbauer polynomial from order 0 to 3
gegenbauer = gegenbauer_all(x, alpha=alpha, n_end=n_end)
print(gegenbauer)
# tensor([ 1.0000, 4.0000, 10.0000, 20.0000], device='cuda:0')
# Generalized Legendre polynomial from order 0 to 3
# If ndim == 3, same as Legendre polynomial
legendre = legendre_all(x, n_end=n_end, ndim=3)
print(legendre)
# tensor([1., 1., 1., 1.], device='cuda:0')
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
Metadata
Release files for jacobi-poly 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jacobi_poly-1.0.7.tar.gz | 11.4 kB | With provenance | Details for jacobi_poly-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jacobi_poly-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for jacobi_poly-1.0.7-py3-none-any.whl |
Total release size: 20.6 kB
Release files / jacobi_poly-1.0.7.tar.gz
| Download URL | jacobi_poly-1.0.7.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b698e9cabaaf056aa7332eed54b20f38270fbc81e688f3b7f8ee6fa372e6fa2f
|
|
BLAKE2b-256 checksum How to use checksums |
619ae16194475347ec91ae3f18cc86c7bcf852f7cf708ed172ebee43c2ab9452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / jacobi_poly-1.0.7-py3-none-any.whl
| Download URL | jacobi_poly-1.0.7-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
223048ece79a462c5e3ce9c33c954b81b20ca5fcdb21bc52d4b40166d61eb3a1
|
|
BLAKE2b-256 checksum How to use checksums |
4bfede520190db6aad659168d91405b3a02b49249176e893757a38ed4ae7e1ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for jacobi-poly 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for jacobi_poly-1.0.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.