Calculate function and derivative. More...
#include <calculus.hpp>
Definition at line 367 of file calculus.hpp.
Static Public Member Functions | |
template<typename T > | |
static void | derf (const T &x, const T &y, T &f, T *d) |
Perform the operation. More... | |
|
inlinestatic |
First save to temp since f might have the same address as x or y, in which case it will be incorrect in the second call
Evaluate the function
Evaluate the partial derivatives
Now save f
Definition at line 369 of file calculus.hpp.
References casadi::BinaryOperation< I >::der(), casadi::BinaryOperation< I >::fcn(), and casadi::T.