Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ForwardDiff"
uuid = "f6369f11-7733-5829-9624-2563aa707210"
version = "1.3.1"
version = "1.3.2"

[deps]
CommonSubexpressions = "bbf7d656-a473-5ed7-a52c-81e309532950"
Expand Down
9 changes: 1 addition & 8 deletions src/dual.jl
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ for pred in UNARY_PREDICATES
end

# Before PR#481 this loop ran over this list:
# BINARY_PREDICATES = Symbol[:isequal, :isless, :<, :>, :(==), :(!=), :(<=), :(>=)]
# BINARY_PREDICATES = Symbol[:isequal, :isless, :<, :>, :(==), :(<=), :(>=)]
# Not a minimal set, as Base defines some in terms of others.
@define_binary_dual_op(
Base.:(<),
Expand Down Expand Up @@ -426,13 +426,6 @@ for pred in [:isequal, :(==)]
end
end

@define_binary_dual_op(
Base.:(!=),
(!=)(value(x), value(y)) || (!=)(partials(x), partials(y)),
(!=)(value(x), y) || !iszero(partials(x)),
(!=)(x, value(y)) || !iszero(partials(y)),
)

########################
# Promotion/Conversion #
########################
Expand Down