File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,27 @@ ChainRulesCore.@scalar_rule(erfcx(x), (2 * x * Ω) - (2 / sqrt(π)))
21
21
ChainRulesCore. @scalar_rule (erfi (x), (2 / sqrt (π)) * exp (x * x))
22
22
ChainRulesCore. @scalar_rule (erfinv (x), (sqrt (π) / 2 ) * exp (Ω^ 2 ))
23
23
ChainRulesCore. @scalar_rule (gamma (x), Ω * digamma (x))
24
+ ChainRulesCore. @scalar_rule (
25
+ gamma (a, x),
26
+ (
27
+ ChainRulesCore. @thunk (error (" not implemented" )),
28
+ - exp (- x) * x^ (a - 1 ),
29
+ ),
30
+ )
31
+ ChainRulesCore. @scalar_rule (
32
+ gamma_inc (a, x, IND),
33
+ @setup (z = exp (- x) * x^ (a - 1 ) / gamma (a)),
34
+ (
35
+ ChainRulesCore. @thunk (error (" not implemented" )),
36
+ z,
37
+ ChainRulesCore. DoesNotExist (),
38
+ ),
39
+ (
40
+ ChainRulesCore. @thunk (error (" not implemented" )),
41
+ - z,
42
+ ChainRulesCore. DoesNotExist (),
43
+ ),
44
+ )
24
45
ChainRulesCore. @scalar_rule (
25
46
invdigamma (x),
26
47
inv (trigamma (invdigamma (x))),
You can’t perform that action at this time.
0 commit comments