Skip to main content

Autograd compatible approximations to the gamma family of functions

Project description

autograd-gamma

PyPI version

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 Distribution

autograd-gamma-0.4.3.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file autograd-gamma-0.4.3.tar.gz.

File metadata

  • Download URL: autograd-gamma-0.4.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for autograd-gamma-0.4.3.tar.gz
Algorithm Hash digest
SHA256 2cb570cbb8da61ede937ccc004d87d3924108f754b351a86cdd2ad31ace6cdf6
MD5 dddc1084e69e6c5977976e45b72e853d
BLAKE2b-256 db707cabb71898dc90da52c2c7dc8fd78ac80b7af6a60a9f8427dee7af9e4929

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page