Closed clguillot closed 7 hours ago
should have been in the code starting from release 0.10.33 (according to the release notes)
I think that by release note you mean this:
https://github.com/JuliaDiff/ForwardDiff.jl/releases/tag/v0.10.33
Note the explanation that this release was yanked, after too many complaints that #481 should perhaps not be viewed as a bugfix.
After that, master was marked 0.11-DEV, and a new branch for further 0.10 releases was made. Github's release notes don't know about branches -- they just list issues closed & PRs merged chronologically between one tag and the next.
There have been no 0.11 releases. https://github.com/JuliaDiff/ForwardDiff.jl/issues/719 is the current discussion about releasing master as 1.0 instead.
Hi everyone,
It seems that the modifications required by issue #481, which should have been in the code starting from release 0.10.33 (according to the release notes) are indeed included in the branch master, but are not present in the last release 0.10.38. In particular, the following https://github.com/JuliaDiff/ForwardDiff.jl/blob/0a35a807e9a39a37d99d9928ea7d61247d8e2882/src/dual.jl#L392-L401 should have been replaced for the operator == by https://github.com/JuliaDiff/ForwardDiff.jl/blob/3acc8a64088564deec85103ed2dcc7cf6c0c2406/src/dual.jl#L391-L407 As a consequence of this modification, equality between 2 Dual with the same tags should check both the equality of the value and the partials, hence avoiding some branching that would have been taken otherwise. In particular, without this fix, we obtain
which is obviously wrong, but
which is right. This can be explained by looking at the code of exp in complex.jl
Here, the branching if iszero(zi) is taken because iszero will only check that value(zi) is zero when it should also check that partials(zi) is zero (which won't be the case in this example).
Is there a reason why the modification that should have been included from release 0.10.33 onward can be found in the master branch but not in the last release ?