Skip to content

Commit f46977e

Browse files
authored
Merge pull request #76 from mcabbott/rmdeps
Revert to zero dependencies
2 parents b6301e8 + 95a8f92 commit f46977e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DiffRules"
22
uuid = "b552c78f-8df3-52c6-915a-8e097449b14b"
3-
version = "1.5.0"
3+
version = "1.6.0"
44

55
[deps]
66
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
@@ -9,7 +9,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
99
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1010

1111
[compat]
12-
LogExpFunctions = "0.3"
12+
LogExpFunctions = "0.3.2"
1313
NaNMath = "0.3"
1414
SpecialFunctions = "0.8, 0.9, 0.10, 1.0, 2"
1515
julia = "1"

src/DiffRules.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ __precompile__()
22

33
module DiffRules
44

5-
import LogExpFunctions
6-
75
include("api.jl")
86
include("rules.jl")
97

src/rules.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,4 @@ end
255255
:(z = LogExpFunctions.logsubexp($x, $y); $x > $y ? exp($x - z) : -exp($x - z)),
256256
:(z = LogExpFunctions.logsubexp($x, $y); $x > $y ? -exp($y - z) : exp($y - z))
257257

258-
# only defined in LogExpFunctions >= 0.3.2
259-
if isdefined(LogExpFunctions, :xlog1py)
260-
@define_diffrule LogExpFunctions.xlog1py(x, y) = :(log1p($y)), :($x / (1 + $y))
261-
end
258+
@define_diffrule LogExpFunctions.xlog1py(x, y) = :(log1p($y)), :($x / (1 + $y))

0 commit comments

Comments
 (0)