Skip to content
Joris Gillis edited this page Apr 4, 2023 · 3 revisions

Standard documentation for Callback.has_reverse,Callback.get_reverse:

 [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

Extra documentation

To edit, see writing tips.

Clone this wiki locally