Skip to content

fma not defined #202

Closed
Closed
@tpapp

Description

@tpapp

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions