Skip to content

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