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 complex output in derivative #583

Merged
merged 1 commit into from
May 5, 2022

Conversation

antoine-levitt
Copy link
Contributor

This allows the differentiation of real->complex functions, which is unambiguous and not tricky (unlike complex->something)

@KristofferC KristofferC merged commit ed0bc33 into JuliaDiff:master May 5, 2022
moble added a commit to moble/Quaternionic.jl that referenced this pull request May 19, 2022
`ForwardDiff` [recently added](JuliaDiff/ForwardDiff.jl#583) support for complex-valued functions of real arguments, which demonstrates the (presumably) right way to support geometric-algebra-valued functions, including quaternion-valued functions.  I was on roughly the right track, but the default method should return 0, and the specific methods of quaternions over `Dual`s should have extracted the `partials` field of each components.  This implements that approach.
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

Successfully merging this pull request may close these issues.

2 participants