#include <alpaqa/casadi-loader-export.h>
#include <alpaqa/util/dl-flags.hpp>
#include "casadi-functions.hpp"
#include "casadi-namespace.hpp"
#include <cassert>
#include <memory>
#include <optional>
#include <span>
#include <stdexcept>
#include <utility>
#include <vector>
Go to the source code of this file.
Classes | |
class | Function |
Class that loads and calls pre-compiled CasADi functions in a DLL/SO file. More... | |
class | Function::Sparsity |
struct | Function::Functions |
struct | Function::Work |
Namespaces | |
namespace | alpaqa |
namespace | alpaqa::casadi |
Functions | |
Function | external (const std::string &name, const std::string &bin_name, DynamicLoadFlags dl_flags) |
Load the given CasADi function from the given DLL/SO file. | |
struct alpaqa::casadi::Function::Functions |
Class Members | ||
---|---|---|
signature_t * | incref = nullptr | |
signature_t * | decref = nullptr | |
signature_t * | n_in = nullptr | |
signature_t * | n_out = nullptr | |
signature_t * | name_in = nullptr | |
signature_t * | name_out = nullptr | |
signature_t * | sparsity_in = nullptr | |
signature_t * | sparsity_out = nullptr | |
signature_t * | alloc_mem = nullptr | |
signature_t * | init_mem = nullptr | |
signature_t * | free_mem = nullptr | |
signature_t * | work = nullptr | |
signature_t * | call = nullptr |
struct alpaqa::casadi::Function::Work |
Class Members | ||
---|---|---|
vector< const casadi_real * > | arg | |
vector< casadi_real * > | res | |
vector< casadi_int > | iw | |
vector< casadi_real > | w |