Description
See the following MWE:
using ForwardDiff
a = ForwardDiff.Dual(-1.0, -Inf)
a = max(a, 0.0) #Dual{Nothing}(0.0,NaN)
The correct output should be Dual{Nothing}(0.0,0.0)
, as the constant 0.0 does not depend on the x. This was causing my code to fail as the solver I was using couldn't handle the NaN values.
Metadata
Metadata
Assignees
Labels
No labels