Skip to content

Commit ba573ca

Browse files
committed
Merge branch 'master' into dw/logabsbeta
2 parents f9f3ca5 + 26acc96 commit ba573ca

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name = "SpecialFunctions"
22
uuid = "276daf66-3868-5448-9aa4-cd146d93841b"
3-
version = "1.4.3"
3+
version = "1.5"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
77
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
88
OpenSpecFun_jll = "efe28fd5-8261-553b-a9e1-b2916fc3738e"
99

1010
[compat]
11-
ChainRulesCore = "0.9.40"
12-
ChainRulesTestUtils = "0.6.8"
11+
ChainRulesCore = "0.9.44, 0.10"
12+
ChainRulesTestUtils = "0.6.8, 0.7"
1313
LogExpFunctions = "0.2"
1414
OpenSpecFun_jll = "0.5"
1515
julia = "1.3"

src/chainrules.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ChainRulesCore.@scalar_rule(
105105
ChainRulesCore.@scalar_rule(
106106
polygamma(m, x),
107107
(
108-
ChainRulesCore.DoesNotExist(),
108+
ChainRulesCore.NoTangent(),
109109
polygamma(m + 1, x),
110110
),
111111
)
@@ -122,7 +122,11 @@ ChainRulesCore.@scalar_rule(
122122
)
123123

124124
# actually is the absolute value of the logorithm of gamma paired with sign gamma
125-
ChainRulesCore.@scalar_rule(logabsgamma(x), digamma(x), ChainRulesCore.Zero())
125+
ChainRulesCore.@scalar_rule(
126+
logabsgamma(x),
127+
digamma(x),
128+
ChainRulesCore.ZeroTangent()
129+
)
126130

127131
ChainRulesCore.@scalar_rule(loggamma(x), digamma(x))
128132
ChainRulesCore.@scalar_rule(

0 commit comments

Comments
 (0)