Fastmath and forwarddiff


#1

Is there a straightforward way to combine @fastmath with ForwardDiff? The idea is that I might define a function f(x) using @fastmath and I then want to evaluate f'(x) using ForwardDiff. My naive attempt generates an error.


#2

Can you post your code and the error?