autograd-gamma


Nameautograd-gamma JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/CamDavidsonPilon/autograd-gamma
SummaryAutograd compatible approximations to the gamma family of functions
upload_time2020-10-15 16:51:06
maintainer
docs_urlNone
authorCameron Davidson-Pilon
requires_python
licenseMIT License
keywords autograd gamma incomplete gamma function
VCS
bugtrack_url
requirements autograd scipy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # autograd-gamma
[![PyPI version](https://badge.fury.io/py/autograd-gamma.svg)](https://badge.fury.io/py/autograd-gamma)


[autograd](https://github.com/HIPS/autograd) compatible approximations to the derivatives of the Gamma-family of functions.


# Tutorial

```python
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.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CamDavidsonPilon/autograd-gamma",
    "name": "autograd-gamma",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "autograd,gamma,incomplete gamma function",
    "author": "Cameron Davidson-Pilon",
    "author_email": "cam.davidson.pilon@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/85/ae/7f2031ea76140444b2453fa139041e5afd4a09fc5300cfefeb1103291f80/autograd-gamma-0.5.0.tar.gz",
    "platform": "",
    "description": "# autograd-gamma\n[![PyPI version](https://badge.fury.io/py/autograd-gamma.svg)](https://badge.fury.io/py/autograd-gamma)\n\n\n[autograd](https://github.com/HIPS/autograd) compatible approximations to the derivatives of the Gamma-family of functions.\n\n\n# Tutorial\n\n```python\nfrom autograd import grad\nfrom autograd_gamma import gammainc, gammaincc, gammaincln, gammainccln\n\n\ngrad(gammainc, argnum=0)(1., 2.)\ngrad(gammaincc, argnum=0)(1., 2.)\n\n# logarithmic functions too.\ngrad(gammaincln, argnum=0)(1., 2.)\ngrad(gammainccln, argnum=0)(1., 2.)\n\n\n\nfrom autograd_gamma import betainc, betaincln\n\ngrad(betainc, argnum=0)(1., 2., 0.5)\ngrad(betainc, argnum=1)(1., 2., 0.5)\n\n# logarithmic functions too.\ngrad(betaincln, argnum=0)(1., 2., 0.5)\ngrad(betaincln, argnum=1)(1., 2., 0.5)\n\n```\n\n\n# Long-term goal\n\nBuild 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.",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Autograd compatible approximations to the gamma family of functions",
    "version": "0.5.0",
    "split_keywords": [
        "autograd",
        "gamma",
        "incomplete gamma function"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "e52947630d9dae785b7ad16aa7b1780f",
                "sha256": "f27abb7b8bb9cffc8badcbf59f3fe44a9db39e124ecacf1992b6d952934ac9c4"
            },
            "downloads": -1,
            "filename": "autograd-gamma-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e52947630d9dae785b7ad16aa7b1780f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3952,
            "upload_time": "2020-10-15T16:51:06",
            "upload_time_iso_8601": "2020-10-15T16:51:06.785118Z",
            "url": "https://files.pythonhosted.org/packages/85/ae/7f2031ea76140444b2453fa139041e5afd4a09fc5300cfefeb1103291f80/autograd-gamma-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-15 16:51:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "CamDavidsonPilon",
    "github_project": "autograd-gamma",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "autograd",
            "specs": [
                [
                    ">=",
                    "1.2.0"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": [
                [
                    ">=",
                    "1.2.0"
                ]
            ]
        }
    ],
    "lcname": "autograd-gamma"
}
        
Elapsed time: 0.04078s