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

Support for complex-values problems #177

Closed
lgravina1997 opened this issue Apr 6, 2023 · 2 comments
Closed

Support for complex-values problems #177

lgravina1997 opened this issue Apr 6, 2023 · 2 comments

Comments

@lgravina1997
Copy link

It seems that the present version does not support complex-valued problem. Let nlprob be a NonlinearProblem with uType Vector{ComplexF64}. Then

solve(nlprob, NewtonRaphson(), abstol = 1e-9)

yields ArgumentError: Cannot create a dual over scalar type ComplexF64. If the type behaves as a scalar, define ForwardDiff.can_dual(::Type{ComplexF64}) = true.

Is there a way around this?

@avik-pal
Copy link
Member

avik-pal commented Nov 6, 2023

The default used to be ForwardDiff.jl but now we can do things smarter and chose the AD or Finite Diff based on the problem type. So this shouldn't be an issue!

@avik-pal
Copy link
Member

avik-pal commented Nov 6, 2023

This can be closed!

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

3 participants