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

ForwardDiff with plan transform fails #239

Open
Veenty opened this issue Apr 2, 2025 · 1 comment
Open

ForwardDiff with plan transform fails #239

Veenty opened this issue Apr 2, 2025 · 1 comment

Comments

@Veenty
Copy link

Veenty commented Apr 2, 2025

So I suspect this is an expected behavior, but not sure how to get around it though

using ClassicalOrthogonalPolynomials
using ForwardDiff

x = chebyshevpoints(Float64, 100, Val(1))
p = plan_transform(Legendre(), x, 1)
T = x-> p*x
JG = ForwardDiff.jacobian(T, x) #error

spits out

ERROR: MethodError: no method matching Float64(::ForwardDiff.Dual{ForwardDiff.Tag{var"#15#16", Float64}, Float64, 10})
The type `Float64` exists, but no method is defined for this combination of argument types when trying to construct it.

@dlfivefifty
Copy link
Member

dlfivefifty commented Apr 2, 2025

Probably needs: JuliaMath/AbstractFFTs.jl#138

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