-
|
Is it possible to calculate ADFun and its derivatives for a function that depends on nested derivatives? ExampleLet I need the derivatives of For that I need the recording for Currently, I get a segvault when I try to call a nested ADFun on |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Is J_a the Jacobian of f or the Jacobian of F ? If it is the Jacobian of f, then yes; see If it is the Jacobian of F, then this is a nonlinear implicit differential equation |
Beta Was this translation helpful? Give feedback.
-
|
OK, then you can use the technique in the base2ad example. The idea here is that you can record the function a, and the use a base2ad version of the funciton to put its derivative in another function. |
Beta Was this translation helpful? Give feedback.
OK, then you can use the technique in the base2ad example. The idea here is that you can record the function a, and the use a base2ad version of the funciton to put its derivative in another function.