From 6f74d88e8f745cc35d8d8fc2b034d7cdc5b2f8ac Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Wed, 28 Jan 2026 21:12:20 +0100 Subject: [PATCH 1/2] Remove explicit `!=` methods for Dual These are already defined by Base in terms of `==`. --- src/dual.jl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/dual.jl b/src/dual.jl index f7aeb1d7..7552dd5f 100644 --- a/src/dual.jl +++ b/src/dual.jl @@ -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.:(<), @@ -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 # ######################## From b50f9a7197f6d218bcbff19d3bb8b4b4d17eb43f Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Wed, 28 Jan 2026 23:05:25 +0100 Subject: [PATCH 2/2] Bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 8dacd88c..d0138ce0 100644 --- a/Project.toml +++ b/Project.toml @@ -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"