JuliaDiff / DiffRules.jl

A simple shared suite of common derivative definitions
Other
74 stars 38 forks source link

Use strong zeros in the diffrules for min/max #87

Closed devmotion closed 1 year ago

devmotion commented 1 year ago

Fixes https://github.com/JuliaDiff/ForwardDiff.jl/issues/603 and makes the definitions here consistent with ChainRules (https://github.com/JuliaDiff/ChainRules.jl/blob/5818173b31fac9d358acda21f5751978a5dcb2e5/src/rulesets/Base/fastmath_able.jl#L220).