-
Notifications
You must be signed in to change notification settings - Fork 364
L_oj
[INTERNAL]
::
has_reverse(self, int nadj) -> bool
Return function that calculates adjoint derivatives.
reverse(nadj) returns a cached instance if available, and calls Function get_reverse(casadi_int nadj) if no cached version is available.
Extra doc: https://github.com/casadi/casadi/wiki/L_oj
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/callback.hpp#L205
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/callback.cpp#L124-L126
[INTERNAL]
::
get_reverse(self, int nadj, str name, [str] inames, [str] onames, dict opts) -> Function
Return function that calculates adjoint derivatives.
reverse(nadj) returns a cached instance if available, and calls Function get_reverse(casadi_int nadj) if no cached version is available.
Extra doc: https://github.com/casadi/casadi/wiki/L_oj
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/callback.hpp#L206
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/callback.cpp#L117-L122
To edit, see writing tips.