Skip to content

Commit 1c95c33

Browse files
committed
remove redundant abs definition post-DiffRules v0.0.4
1 parent bd9e521 commit 1c95c33

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ julia 0.6.0
22
Compat 0.47.0
33
StaticArrays 0.5.0
44
DiffResults 0.0.1
5-
DiffRules 0.0.3
5+
DiffRules 0.0.4
66
NaNMath 0.2.2
77
SpecialFunctions 0.1.0
88
CommonSubexpressions 0.0.1

src/dual.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ Base.AbstractFloat(d::Dual{T,V,N}) where {T,V,N} = convert(Dual{T,promote_type(V
318318

319319
@inline Base.conj(d::Dual) = d
320320

321-
@inline Base.abs(d::Dual) = signbit(value(d)) ? -d : d
322-
323321
for (M, f, arity) in DiffRules.diffrules()
324322
in((M, f), ((:Base, :^), (:NaNMath, :pow), (:Base, :/), (:Base, :+), (:Base, :-))) && continue
325323
if arity == 1

0 commit comments

Comments
 (0)