Registered Member
|
Hi there!
I know that the autodiff functionality is unsupported, but I will try anyhow... I am using it to calculate the jacobian basically using a copy-paste from the relevant parts of the autodiff.cpp test. I found that when a system of equations has a stand-alone constant, the resulting code won't compile, e.g. (taken from autodiff.cpp)
Would anyone help me with overcoming this? Thank you in advance! Yan |
Moderator
|
hm which compiler because here (gcc 4.5) it compiles fine with the "+ 2.0"
|
Registered Member
|
I am sorry for the misguidance. When the constant is added, the code works, but when it is subtracted, the compilation fails (gcc 4.6). That is because the "-" operator is missing in the AutoDiffScalar.h file. I added it myself and now everything works! I love open source! Still not sure why it was omitted in the first place...
|
Moderator
|
|
Registered Member
|
I had a look at the devel branch, you type
Shouldn't there be
instead? |
Moderator
|
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar