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

complex number support? #148

Open
Roger-luo opened this issue Aug 11, 2021 · 3 comments
Open

complex number support? #148

Roger-luo opened this issue Aug 11, 2021 · 3 comments

Comments

@Roger-luo
Copy link

I ran into this problem by using the AutoTsit5(Rosenbrock23()) on shordinger function (an equation that has a complex valued state), basically it seems the following line

_t = Dual{typeof(ForwardDiff.Tag(f,eltype(vec(x))))}.(vec(x),first(p))

won't run if x is complex-valued. I'm not sure how should this be generalized however...

@ChrisRackauckas
Copy link
Member

AutoTsit5(Rosenbrock23(autodiff=false)) does that work?

@Roger-luo
Copy link
Author

yes, @ChrisRackauckas that works! I'm not sure what's the difference with or without AD tho?

@ChrisRackauckas
Copy link
Member

Not much. In some very numerically ill-conditioned problems it can matter, but most tests show little performance difference. It's really just a safety difference.

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