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

Standard documentation for external:

 [INTERNAL] 

::

 external(str name, dict opts) -> Function
 external(str name, Importer li, dict opts) -> Function
 external(str name, str bin_name, dict opts) -> Function

Load a just-in-time compiled external function.

File name given

Extra doc: https://github.com/casadi/casadi/wiki/L_i2

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/external.hpp#L42

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/external.cpp#L42-L45

.......

::

 external(str name, dict opts)

[INTERNAL] Load an external function from a shared library.

Parameters:

name: Name as in the label assigned to a CasADi Function object: Function(name,...,...) Will be used to look up symbols/functions named eg. _eval Use nm (linux/osx) or depends.exe (win) to check which symbols are present in your shared library

File name is assumed to be ./.so

Extra doc: https://github.com/casadi/casadi/wiki/L_i0

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/external.hpp#L47

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/external.cpp#L47-L49

.............

.......

::

 external(str name, str bin_name, dict opts)

[INTERNAL] Load an external function from a shared library.

Parameters:

name: Name as in the label assigned to a CasADi Function object: Function(name,...,...) Will be used to look up symbols/functions named eg. _eval Use nm (linux/osx) or depends.exe (win) to check which symbols are present in your shared library

bin_name: File name of the shared library

Extra doc: https://github.com/casadi/casadi/wiki/L_i1

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/external.hpp#L51

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/external.cpp#L51-L54

.............

.......

::

 external(str name, Importer li, dict opts)

[INTERNAL] Load a just-in-time compiled external function.

File name given

Extra doc: https://github.com/casadi/casadi/wiki/L_i2

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/external.hpp#L42

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/external.cpp#L42-L45

.............

Extra documentation

To edit, see writing tips.

Clone this wiki locally