Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodError: no method matching kronrod(::Type{ForwardDiff.Dual{ForwardDiff.Tag{typeof(test), Float64}, Float64, 1}}, ::Int64) #122

Open
ZhangFengshun opened this issue Oct 11, 2024 · 1 comment

Comments

@ZhangFengshun
Copy link

image

@stevengj
Copy link
Member

stevengj commented Oct 11, 2024

See #13 (comment)

A workaround is probably to define:

QuadGK.cachedrule(::Type{<:ForwardDiff{<:Any, T}}, n::Integer) where {T<:Number} =
    QuadGK._cachedrule(typeof(float(real(one(T)))), Int(n))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants