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

Standard documentation for Callback.eval_buffer:

 [INTERNAL] 

::

 eval_buffer(self, double const ** arg, [int] sizes_arg, double ** res, [int] sizes_res) -> int

A copy-free low level interface.

In Python, you will be passed two tuples of memoryview objects Note that only the structural nonzeros are present in the memoryview objects/buffers.

Make sure to override has_eval_buffer() to indicate support for this method.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/callback.hpp#L116

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/callback.cpp#L53-L56

Extra documentation

To edit, see writing tips.

Clone this wiki locally