Class to achieve minimal overhead function evaluations. More...
#include <function.hpp>
Extra doc: https://github.com/casadi/casadi/wiki/L_1y9
Definition at line 1295 of file function.hpp.
Public Member Functions | |
FunctionBuffer (const Function &f) | |
Main constructor. More... | |
void | set_arg (casadi_int i, const double *a, casadi_int size) |
Set input buffer for input i. More... | |
void | set_res (casadi_int i, double *a, casadi_int size) |
Set output buffer for ouput i. More... | |
int | ret () |
Get last return value. More... | |
void | _eval () |
void * | _self () |
casadi::FunctionBuffer::FunctionBuffer | ( | const Function & | f | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ya
void casadi::FunctionBuffer::_eval | ( | ) |
|
inline |
Definition at line 1336 of file function.hpp.
int casadi::FunctionBuffer::ret | ( | ) |
void casadi::FunctionBuffer::set_arg | ( | casadi_int | i, |
const double * | a, | ||
casadi_int | size | ||
) |
mem.set_arg(0, memoryview(a))
Note that CasADi uses 'fortran' order: column-by-column
Extra doc: https://github.com/casadi/casadi/wiki/L_1yb
void casadi::FunctionBuffer::set_res | ( | casadi_int | i, |
double * | a, | ||
casadi_int | size | ||
) |
mem.set_res(0, memoryview(a))
Note that CasADi uses 'fortran' order: column-by-column
Extra doc: https://github.com/casadi/casadi/wiki/L_1yc