Autograd compatible approximations to the gamma family of functions
Project description
autograd-gamma
autograd compatible approximations to the derivatives of the Gamma-family of functions.
Tutorial
from autograd import grad
from autograd_gamma import gammainc, gammaincc, gammaincln, gammainccln
grad(gammainc, argnum=0)(1., 2.)
grad(gammaincc, argnum=0)(1., 2.)
# logarithmic functions too.
grad(gammaincln, argnum=0)(1., 2.)
grad(gammainccln, argnum=0)(1., 2.)
from autograd_gamma import betainc, betaincln
grad(betainc, argnum=0)(1., 2., 0.5)
grad(betainc, argnum=1)(1., 2., 0.5)
# logarithmic functions too.
grad(betaincln, argnum=0)(1., 2., 0.5)
grad(betaincln, argnum=1)(1., 2., 0.5)
Long-term goal
Build and improve upon the derivative of the upper and lower incomplete gamma functions. Eventually, if we have a fast analytical solution, we will merge into the autograd library.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
File details
Details for the file autograd_gamma-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: autograd_gamma-0.4.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf89881ccb5c320ec10927410d6da816bc628b17183f4dee674e6d757ab5552 |
|
MD5 | c143c4f2b51ea9973d52d5e2b9829a81 |
|
BLAKE2b-256 | 67aaf85ea1c24f34eef1acd97615ad84accc4764b9bb20b668fd5a94e745922d |
File details
Details for the file autograd_gamma-0.4.2-py2.py3-none-any.whl
.
File metadata
- Download URL: autograd_gamma-0.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83fd9c76ffa6803710124404fc6e4ef33d2a01557d26f7dd36073aa2be05fb1d |
|
MD5 | 2cc0a858864ad3e9ca95fe549679037f |
|
BLAKE2b-256 | 0a07d99339c9420b58b723a9189d1373e5c3889758b2202a1a7fe4a3b7a10c5a |