Skip to content

Commit 8f9e9b3

Browse files
committed
transpose diffrule now in DiffRules
1 parent 3077036 commit 8f9e9b3

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
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.45.0
33
StaticArrays 0.5.0
44
DiffResults 0.0.1
5-
DiffRules 0.0.1
5+
DiffRules 0.0.3
66
NaNMath 0.2.2
77
SpecialFunctions 0.1.0
88
CommonSubexpressions 0.0.1

src/dual.jl

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

315315
@inline Base.conj(d::Dual) = d
316316

317-
@inline Base.transpose(d::Dual) = d
318-
319-
@inline Base.ctranspose(d::Dual) = d
320-
321317
@inline Base.abs(d::Dual) = signbit(value(d)) ? -d : d
322318

323319
for (M, f, arity) in DiffRules.diffrules()

test/DualTest.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,6 @@ for N in (0,3), M in (0,4), V in (Int, Float32)
384384
@test transpose(FDNUM) === FDNUM
385385
@test transpose(NESTED_FDNUM) === NESTED_FDNUM
386386

387-
@test ctranspose(FDNUM) === FDNUM
388-
@test ctranspose(NESTED_FDNUM) === NESTED_FDNUM
389-
390387
@test abs(-FDNUM) === FDNUM
391388
@test abs(FDNUM) === FDNUM
392389
@test abs(-NESTED_FDNUM) === NESTED_FDNUM

0 commit comments

Comments
 (0)