#include <alpaqa/casadi/CasADiFunctionWrapper.hpp>
Class for evaluating CasADi functions, allocating the necessary workspace storage in advance for allocation-free evaluations.
Definition at line 21 of file CasADiFunctionWrapper.hpp.
Public Types | |
using | casadi_dim = std::pair< casadi_int, casadi_int > |
Public Member Functions | |
CasADiFunctionEvaluator (casadi::Function &&f) | |
CasADiFunctionEvaluator (casadi::Function &&f, const std::array< casadi_dim, N_in > &dim_in, const std::array< casadi_dim, N_out > &dim_out) | |
void | validate_dimensions (const std::array< casadi_dim, N_in > &dim_in={}, const std::array< casadi_dim, N_out > &dim_out={}) |
void | operator() (const double *const (&in)[N_in], double *const (&out)[N_out]) const |
Static Public Member Functions | |
static void | validate_num_args (const casadi::Function &fun) |
static void | validate_dimensions (const casadi::Function &fun, const std::array< casadi_dim, N_in > &dim_in={}, const std::array< casadi_dim, N_out > &dim_out={}) |
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 |
std::vector< const double * > | arg_work |
std::vector< double * > | res_work |
using casadi_dim = std::pair<casadi_int, casadi_int> |
Definition at line 26 of file CasADiFunctionWrapper.hpp.
|
inline |
invalid_argument_dimensions |
Definition at line 29 of file CasADiFunctionWrapper.hpp.
|
inline |
invalid_argument_dimensions |
Definition at line 36 of file CasADiFunctionWrapper.hpp.
invalid_argument_dimensions |
Definition at line 44 of file CasADiFunctionWrapper.hpp.
|
inlinestatic |
invalid_argument_dimensions |
Definition at line 60 of file CasADiFunctionWrapper.hpp.
|
inline |
invalid_argument_dimensions |
Definition at line 93 of file CasADiFunctionWrapper.hpp.
Definition at line 99 of file CasADiFunctionWrapper.hpp.
Definition at line 112 of file CasADiFunctionWrapper.hpp.
|
mutableprivate |
Definition at line 115 of file CasADiFunctionWrapper.hpp.
Definition at line 116 of file CasADiFunctionWrapper.hpp.
Definition at line 117 of file CasADiFunctionWrapper.hpp.
Definition at line 118 of file CasADiFunctionWrapper.hpp.