List of all members | Public Member Functions
casadi::FunctionBuffer Class Reference

Class to achieve minimal overhead function evaluations. More...

#include <function.hpp>

Detailed Description

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 ()
 

Constructor & Destructor Documentation

◆ FunctionBuffer()

casadi::FunctionBuffer::FunctionBuffer ( const Function f)

Member Function Documentation

◆ _eval()

void casadi::FunctionBuffer::_eval ( )

◆ _self()

void* casadi::FunctionBuffer::_self ( )
inline

Definition at line 1336 of file function.hpp.

◆ ret()

int casadi::FunctionBuffer::ret ( )

◆ set_arg()

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

◆ set_res()

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


The documentation for this class was generated from the following file: