Closed
Description
MWE:
julia> using ForwardDiff
julia> f(x) = fma(x, 3.0, 4.0)
WARNING: Method definition f(Any) in module Main at REPL[2]:1 overwritten at REPL[6]:1.
f (generic function with 1 method)
julia> ForwardDiff.derivative(f, 1.0)
ERROR: fma not defined for ForwardDiff.Dual{1,Float64}
in derivative(::#f, ::Float64) at /home/tamas/.julia/v0.5/ForwardDiff/src/derivative.jl:5
A PR will follow soon — I guess I just add this manually?
Metadata
Metadata
Assignees
Labels
No labels