external_function_interface

external_function_interface#

Functions

void external_function_param_generic_create(external_function_param_generic *fun, int np, external_function_opts *opts_)#
void external_function_param_generic_free(external_function_param_generic *fun)#
void external_function_casadi_create(external_function_casadi *fun, external_function_opts *opts_)#
void external_function_casadi_free(external_function_casadi *fun)#
void external_function_casadi_create_array(int size, external_function_casadi *funs, external_function_opts *opts_)#
void external_function_casadi_free_array(int size, external_function_casadi *funs)#
void external_function_param_casadi_create(external_function_param_casadi *fun, int np, external_function_opts *opts_)#
void external_function_param_casadi_free(external_function_param_casadi *fun)#
void external_function_param_casadi_create_array(int size, external_function_param_casadi *funs, int np, external_function_opts *opts_)#
void external_function_param_casadi_free_array(int size, external_function_param_casadi *funs)#
void external_function_external_param_casadi_create(external_function_external_param_casadi *fun, external_function_opts *opts_)#
void external_function_external_param_casadi_free(external_function_external_param_casadi *fun)#
void external_function_external_param_generic_create(external_function_external_param_generic *fun, external_function_opts *opts_)#
void external_function_external_param_generic_free(external_function_external_param_generic *fun)#

Enums

enum ext_fun_arg_t#

Values:

enumerator COLMAJ#
enumerator BLASFEO_DMAT#
enumerator BLASFEO_DVEC#
enumerator COLMAJ_ARGS#
enumerator BLASFEO_DMAT_ARGS#
enumerator BLASFEO_DVEC_ARGS#
enumerator IGNORE_ARGUMENT#

Functions

size_t external_function_get_workspace_requirement_if_defined(external_function_generic *fun)#
void external_function_set_fun_workspace_if_defined(external_function_generic *fun, void *work_)#
void external_function_opts_set_to_default(external_function_opts *opts)#
acados_size_t external_function_param_generic_struct_size()#
acados_size_t external_function_param_generic_calculate_size(external_function_param_generic *fun, int np, external_function_opts *opts_)#
void external_function_param_generic_assign(external_function_param_generic *fun, void *mem)#
void external_function_param_generic_wrapper(void *self, ext_fun_arg_t *type_in, void **in, ext_fun_arg_t *type_out, void **out)#
void external_function_param_generic_get_nparam(void *self, int *np)#
void external_function_param_generic_set_param(void *self, double *p)#
size_t external_function_param_generic_get_external_workspace_requirement(void *self)#
void external_function_param_generic_set_external_workspace(void *self, void *workspace)#
acados_size_t external_function_casadi_struct_size()#
acados_size_t external_function_casadi_calculate_size(external_function_casadi *fun, external_function_opts *opts_)#
void external_function_casadi_assign(external_function_casadi *fun, void *mem)#
void external_function_casadi_wrapper(void *self, ext_fun_arg_t *type_in, void **in, ext_fun_arg_t *type_out, void **out)#
size_t external_function_casadi_get_external_workspace_requirement(void *self)#
void external_function_casadi_set_external_workspace(void *self, void *workspace)#
acados_size_t external_function_param_casadi_struct_size()#
acados_size_t external_function_param_casadi_calculate_size(external_function_param_casadi *fun, int np, external_function_opts *opts_)#
void external_function_param_casadi_assign(external_function_param_casadi *fun, void *mem)#
void external_function_param_casadi_wrapper(void *self, ext_fun_arg_t *type_in, void **in, ext_fun_arg_t *type_out, void **out)#
void external_function_param_casadi_get_nparam(void *self, int *np)#
size_t external_function_param_casadi_get_external_workspace_requirement(void *self)#
void external_function_param_casadi_set_external_workspace(void *self, void *workspace)#
acados_size_t external_function_external_param_casadi_struct_size()#
acados_size_t external_function_external_param_casadi_calculate_size(external_function_external_param_casadi *fun, external_function_opts *opts_)#
void external_function_external_param_casadi_assign(external_function_external_param_casadi *fun, void *mem)#
void external_function_external_param_casadi_wrapper(void *self, ext_fun_arg_t *type_in, void **in, ext_fun_arg_t *type_out, void **out)#
size_t external_function_external_param_casadi_get_external_workspace_requirement(void *self)#
void external_function_external_param_casadi_set_external_workspace(void *self, void *workspace)#
acados_size_t external_function_external_param_generic_struct_size()#
acados_size_t external_function_external_param_generic_calculate_size(external_function_external_param_generic *fun, external_function_opts *opts_)#
void external_function_external_param_generic_assign(external_function_external_param_generic *fun, void *mem)#
void external_function_external_param_generic_wrapper(void *self, ext_fun_arg_t *type_in, void **in, ext_fun_arg_t *type_out, void **out)#
void external_function_external_param_generic_set_param_ptr(void *self, double *p)#
size_t external_function_external_param_generic_get_external_workspace_requirement(void *self)#
void external_function_external_param_generic_set_external_workspace(void *self, void *workspace)#
struct colmaj_args#
#include <external_function_generic.h>

Public Members

double *A#
int lda#
struct blasfeo_dmat_args#
#include <external_function_generic.h>

Public Members

struct blasfeo_dmat *A#
int ai#
int aj#
struct blasfeo_dvec_args#
#include <external_function_generic.h>

Public Members

struct blasfeo_dvec *x#
int xi#
struct external_function_opts#
#include <external_function_generic.h>

Public Members

bool external_workspace#
bool with_global_data#
struct external_function_generic#
#include <external_function_generic.h>

Public Members

void (*evaluate)(void*, ext_fun_arg_t*, void**, ext_fun_arg_t*, void**)#
size_t (*get_external_workspace_requirement)(void*)#
void (*set_external_workspace)(void*, void*)#
struct external_function_param_generic#
#include <external_function_generic.h>

Public Members

void (*evaluate)(void*, ext_fun_arg_t*, void**, ext_fun_arg_t*, void**)#
size_t (*get_external_workspace_requirement)(void*)#
void (*set_external_workspace)(void*, void*)#
void (*get_nparam)(void*, int*)#
void (*set_param)(void*, double*)#
void (*set_param_sparse)(void*, int n_update, int *idx, double*)#
void *ptr_ext_mem#
int (*fun)(void**, void**, void*)#
double *p#
int np#
external_function_opts opts#
struct external_function_casadi#
#include <external_function_generic.h>

Public Members

void (*evaluate)(void*, ext_fun_arg_t*, void**, ext_fun_arg_t*, void**)#
size_t (*get_external_workspace_requirement)(void*)#
void (*set_external_workspace)(void*, void*)#
void *ptr_ext_mem#
int (*casadi_fun)(const double**, double**, int*, double*, void*)#
int (*casadi_work)(int*, int*, int*, int*)#
const int *(*casadi_sparsity_in)(int)#
const int *(*casadi_sparsity_out)(int)#
int (*casadi_n_in)(void)#
int (*casadi_n_out)(void)#
double **args#
double **res#
double *float_work#
int *int_work#
int *args_size#
int *res_size#
int *args_dense#
int *res_dense#
int args_num#
int args_size_tot#
int res_num#
int res_size_tot#
int in_num#
int out_num#
int int_work_size#
int float_work_size#
external_function_opts opts#
struct external_function_param_casadi#
#include <external_function_generic.h>

Public Members

void (*evaluate)(void*, ext_fun_arg_t*, void**, ext_fun_arg_t*, void**)#
size_t (*get_external_workspace_requirement)(void*)#
void (*set_external_workspace)(void*, void*)#
void (*get_nparam)(void*, int*)#
void (*set_param)(void*, double*)#
void (*set_param_sparse)(void*, int n_update, int *idx, double*)#
void *ptr_ext_mem#
int (*casadi_fun)(const double**, double**, int*, double*, void*)#
int (*casadi_work)(int*, int*, int*, int*)#
const int *(*casadi_sparsity_in)(int)#
const int *(*casadi_sparsity_out)(int)#
int (*casadi_n_in)(void)#
int (*casadi_n_out)(void)#
double **args#
double **res#
double *float_work#
int *int_work#
int *args_size#
int *res_size#
int *args_dense#
int *res_dense#
int args_num#
int args_size_tot#
int res_num#
int res_size_tot#
int in_num#
int out_num#
int int_work_size#
int float_work_size#
int np#
int idx_in_p#
external_function_opts opts#
struct external_function_external_param_casadi#
#include <external_function_generic.h>

Public Members

void (*evaluate)(void*, ext_fun_arg_t*, void**, ext_fun_arg_t*, void**)#
size_t (*get_external_workspace_requirement)(void*)#
void (*set_external_workspace)(void*, void*)#
void (*set_global_data_pointer)(void*, double*)#
void (*set_param_pointer)(void*, double*)#
void *ptr_ext_mem#
int (*casadi_fun)(const double**, double**, int*, double*, void*)#
int (*casadi_work)(int*, int*, int*, int*)#
const int *(*casadi_sparsity_in)(int)#
const int *(*casadi_sparsity_out)(int)#
int (*casadi_n_in)(void)#
int (*casadi_n_out)(void)#
double **args#
double **res#
double *float_work#
int *int_work#
int *args_size#
int *res_size#
int *args_dense#
int *res_dense#
int args_num#
int args_size_tot#
int res_num#
int res_size_tot#
int in_num#
int out_num#
int int_work_size#
int float_work_size#
bool param_mem_is_set#
bool global_data_ptr_is_set#
int idx_in_p#
int idx_in_global_data#
external_function_opts opts#
struct external_function_external_param_generic#
#include <external_function_generic.h>

Public Members

void (*evaluate)(void*, ext_fun_arg_t*, void**, ext_fun_arg_t*, void**)#
size_t (*get_external_workspace_requirement)(void*)#
void (*set_external_workspace)(void*, void*)#
void (*set_global_data_pointer)(void*, double*)#
void (*set_param_pointer)(void*, double*)#
void *ptr_ext_mem#
int (*fun)(void**, void**, void*)#
double *p#
bool param_mem_is_set#
external_function_opts opts#