We're having difficulties using the latest patch release of ForwardDiff.jl in the following situation:
ForwardDiff.derivative(2.0) do x
h = fill(zero(typeof(x)), (2, 2))
F = ExponentialUtilities.exponential!(im * h, ExpMethodGeneric())
return sum(F)
end
is returning a NaN.