-
Notifications
You must be signed in to change notification settings - Fork 26
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
Imaginary part of complex gradient is dropped #75
Comments
Thanks for raising the issue. What version of FiniteDifferences are you running? |
I saw this with both the most recent release (v0.9.6) and master on Julia 1.4. |
I just checked a few releases, and it looks like the return type became real in v0.9.3, but before that the imaginary part was just 0 going back at least to v0.8. |
in #76 (#76 (comment)) it was decided this was a breaking change (rather than a bug fix), so the change is available in a new breaking release v0.10.0 (280c4fa) |
In a number of cases at least, it seems that the imaginary part of the gradient for complex inputs and real scalar outputs is dropped. A few examples:
Also, am I supposed to see this error?
The text was updated successfully, but these errors were encountered: