converting between AD<double> and AD<complex double> #134
Unanswered
nicoleruckstuhl
asked this question in
Q&A
Replies: 2 comments
-
The functions real, imag and conj are not complex differentiable. They are however real differentiable. If you used |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you, I'll try to continue that way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to convert my code to use CppAD. However my code makes heavy use of complex specific functions (such as conj(), norm(), arg() ) which don't seem to be incorporated in CppAD. Is this correct? How could they be added?
I believe I would be able to do everything I need with the following 3 functions:
AD = real(AD)
AD = imag(AD)
AD = cd(AD, AD)
Am I correct in understanding that these functions to convert between AD and AD don't exist in CppAD? Would it be possible to add them? If yes could you point me to how to do that, or to an example on how to convert from one AD base type to another?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions