Skip to content

Commit

Permalink
Fix docstrings reference for the betainc_grad function (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyoshino authored Aug 14, 2023
1 parent b968766 commit 686811c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pytensor/scalar/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,13 +1357,13 @@ def c_code(self, *args, **kwargs):


def betainc_grad(p, q, x, wrtp: bool):
"""Gradient of the regularized lower gamma function (P) wrt to the first
argument (k, a.k.a. alpha).
Adapted from STAN `grad_reg_lower_inc_gamma.hpp`
"""
Gradient of the regularized incomplete beta function wrt to the first
argument `p` (aka alpha) or the second argument `q` (aka beta),
depending on whether `wrtp` is true.
Reference: Gautschi, W. (1979). A computational procedure for incomplete gamma functions.
ACM Transactions on Mathematical Software (TOMS), 5(4), 466-481.
Reference: Boik, R. J., & Robison-Cox, J. F. (1998). Derivatives of the incomplete beta function.
Journal of Statistical Software, 3(1), 1-20.
"""

def _betainc_der(p, q, x, wrtp, skip_loop):
Expand Down

0 comments on commit 686811c

Please sign in to comment.