#include <alpaqa/casadi/CasADiFunctionWrapper.hpp>
Class for evaluating CasADi functions, allocating the necessary workspace storage in advance for allocation-free evaluations.
Definition at line 28 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]) |
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 |
using casadi_dim = std::pair<casadi_int, casadi_int> |
Definition at line 33 of file CasADiFunctionWrapper.hpp.
|
inline |
invalid_argument_dimensions |
Definition at line 36 of file CasADiFunctionWrapper.hpp.
|
inline |
invalid_argument_dimensions |
Definition at line 48 of file CasADiFunctionWrapper.hpp.
|
inlinestatic |
invalid_argument_dimensions |
Definition at line 56 of file CasADiFunctionWrapper.hpp.
|
inlinestatic |
invalid_argument_dimensions |
Definition at line 72 of file CasADiFunctionWrapper.hpp.
|
inline |
invalid_argument_dimensions |
Definition at line 105 of file CasADiFunctionWrapper.hpp.
|
inline |
Definition at line 125 of file CasADiFunctionWrapper.hpp.
casadi::Function fun |
Definition at line 132 of file CasADiFunctionWrapper.hpp.