#include <alpaqa/interop/casadi/CasADiFunctionWrapper.hpp>
Class for evaluating CasADi functions, allocating the necessary workspace storage in advance for allocation-free evaluations.
Definition at line 17 of file CasADiFunctionWrapper.hpp.
Public Types | |
using | casadi_dim = std::pair< casadi_int, casadi_int > |
Public Member Functions | |
CasADiFunctionEvaluator (casadi::Function &&f, const casadi_dim(&dim_in)[N_in]={}, const casadi_dim(&dim_out)[N_out]={}) | |
void | validate_dimensions (const casadi_dim(&dim_in)[N_in], const casadi_dim(&dim_out)[N_out]) |
void | operator() (const double *const (&in)[N_in], double *const (&out)[N_out]) const |
Public Attributes | |
casadi::Function | fun |
Protected Member Functions | |
void | operator() (const double *const *in, double *const *out) const |
Private Attributes | |
std::vector< casadi_int > | iwork |
std::vector< double > | dwork |
using casadi_dim = std::pair<casadi_int, casadi_int> |
Definition at line 19 of file CasADiFunctionWrapper.hpp.
|
inline |
std::invalid_argument |
Definition at line 22 of file CasADiFunctionWrapper.hpp.
|
inline |
std::invalid_argument |
Definition at line 34 of file CasADiFunctionWrapper.hpp.
|
inlineprotected |
Definition at line 60 of file CasADiFunctionWrapper.hpp.
|
inline |
casadi::Function fun |
Definition at line 72 of file CasADiFunctionWrapper.hpp.
|
mutableprivate |
Definition at line 75 of file CasADiFunctionWrapper.hpp.
|
mutableprivate |
Definition at line 76 of file CasADiFunctionWrapper.hpp.