You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> ForwardDiff.derivative(intp, 3.0)
ERROR: MethodError: no method matching extract_derivative(::Type{ForwardDiff.Tag{Interpolations.Extrapolation{Complex{Float64},1,Interpolations.GriddedInterpolation{Complex{Float64},1,Complex{Float64},Gridded{Linear},Tuple{Array{Float64,1}}},Gridded{Linear},Throw{Nothing}},Float64}}, ::Complex{ForwardDiff.Dual{ForwardDiff.Tag{Interpolations.Extrapolation{Complex{Float64},1,Interpolations.GriddedInterpolation{Complex{Float64},1,Complex{Float64},Gridded{Linear},Tuple{Array{Float64,1}}},Gridded{Linear},Throw{Nothing}},Float64},Float64,1}})
Closest candidates are:extract_derivative(::Type{T}, ::ForwardDiff.Dual) where T at C:\Users\John\.julia\packages\ForwardDiff\N0wMF\src\derivative.jl:79extract_derivative(::Type{T}, ::Real) where T at C:\Users\John\.julia\packages\ForwardDiff\N0wMF\src\derivative.jl:80extract_derivative(::Type{T}, ::AbstractArray) where T at C:\Users\John\.julia\packages\ForwardDiff\N0wMF\src\derivative.jl:81
Stacktrace:
[1] derivative(::Interpolations.Extrapolation{Complex{Float64},1,Interpolations.GriddedInterpolation{Complex{Float64},1,Complex{Float64},Gridded{Linear},Tuple{Array{Float64,1}}},Gridded{Linear},Throw{Nothing}}, ::Float64) at C:\Users\John\.julia\packages\ForwardDiff\N0wMF\src\derivative.jl:14
[2] top-level scope at none:0
If I use a real valued interpolation object all works fine:
If I make a complex interpolation:
I can interpolate and also take the gradient just fine:
but I cannot use ForwardDiff:
If I use a real valued interpolation object all works fine:
Do you know why? Is this a problem with ForwardDiff?
The text was updated successfully, but these errors were encountered: