List of all members | Public Member Functions | Public Attributes | Friends
casadi::CallbackInternal Class Reference

#include <callback_internal.hpp>

Detailed Description

Definition at line 33 of file callback_internal.hpp.

Inheritance diagram for casadi::CallbackInternal:
Inheritance graph
[legend]

Public Member Functions

 CallbackInternal (const std::string &name, Callback *self)
 Constructor. More...
 
 ~CallbackInternal () override
 Destructor. More...
 
std::string class_name () const override
 Get type name. More...
 
void init (const Dict &opts) override
 Initialize. More...
 
void finalize () override
 Finalize the object creation. More...
 
virtual int eval (const double **arg, double **res, casadi_int *iw, double *w, void *mem) const override
 Evaluate numerically. More...
 
bool has_eval_buffer () const
 
bool uses_output () const override
 Do the derivative functions need nondifferentiated outputs? More...
 
size_t get_n_in () override
 Number of function inputs and outputs. More...
 
size_t get_n_out () override
 Number of function inputs and outputs. More...
 
Sparsity get_sparsity_in (casadi_int i) override
 Sparsities of function inputs and outputs. More...
 
Sparsity get_sparsity_out (casadi_int i) override
 Sparsities of function inputs and outputs. More...
 
std::string get_name_in (casadi_int i) override
 Names of function input and outputs. More...
 
std::string get_name_out (casadi_int i) override
 Names of function input and outputs. More...
 
std::vector< DMeval_dm (const std::vector< DM > &arg) const override
 Evaluate with DM matrices. More...
 
bool has_eval_dm () const override
 Evaluate with DM matrices. More...
 
bool has_jacobian () const override
 Return Jacobian of all input elements with respect to all output elements. More...
 
Function get_jacobian (const std::string &name, const std::vector< std::string > &inames, const std::vector< std::string > &onames, const Dict &opts) const override
 Return Jacobian of all input elements with respect to all output elements. More...
 
bool has_jac_sparsity (casadi_int oind, casadi_int iind) const override
 Return sparsity of Jacobian of an output respect to an input. More...
 
Sparsity get_jac_sparsity (casadi_int oind, casadi_int iind, bool symmetric) const override
 Return sparsity of Jacobian of an output respect to an input. More...
 
bool has_forward (casadi_int nfwd) const override
 Return function that calculates forward derivatives. More...
 
Function get_forward (casadi_int nfwd, const std::string &name, const std::vector< std::string > &inames, const std::vector< std::string > &onames, const Dict &opts) const override
 Return function that calculates forward derivatives. More...
 
bool has_reverse (casadi_int nadj) const override
 Return function that calculates adjoint derivatives. More...
 
Function get_reverse (casadi_int nadj, const std::string &name, const std::vector< std::string > &inames, const std::vector< std::string > &onames, const Dict &opts) const override
 Return function that calculates adjoint derivatives. More...
 

Public Attributes

Callbackself_
 Pointer to the public class. More...
 
std::vector< casadi_int > sizes_arg_
 
std::vector< casadi_int > sizes_res_
 
bool has_eval_buffer_
 

Friends

class CallbackFunction
 

Constructor & Destructor Documentation

◆ CallbackInternal()

casadi::CallbackInternal::CallbackInternal ( const std::string &  name,
Callback self 
)
explicit

◆ ~CallbackInternal()

casadi::CallbackInternal::~CallbackInternal ( )
override

Member Function Documentation

◆ class_name()

std::string casadi::CallbackInternal::class_name ( ) const
inlineoverride

◆ eval()

virtual int casadi::CallbackInternal::eval ( const double **  arg,
double **  res,
casadi_int *  iw,
double *  w,
void *  mem 
) const
overridevirtual

◆ eval_dm()

std::vector<DM> casadi::CallbackInternal::eval_dm ( const std::vector< DM > &  arg) const
override

◆ finalize()

void casadi::CallbackInternal::finalize ( )
override

◆ get_forward()

Function casadi::CallbackInternal::get_forward ( casadi_int  nfwd,
const std::string &  name,
const std::vector< std::string > &  inames,
const std::vector< std::string > &  onames,
const Dict opts 
) const
override

◆ get_jac_sparsity()

Sparsity casadi::CallbackInternal::get_jac_sparsity ( casadi_int  oind,
casadi_int  iind,
bool  symmetric 
) const
override

◆ get_jacobian()

Function casadi::CallbackInternal::get_jacobian ( const std::string &  name,
const std::vector< std::string > &  inames,
const std::vector< std::string > &  onames,
const Dict opts 
) const
override

◆ get_n_in()

size_t casadi::CallbackInternal::get_n_in ( )
override

◆ get_n_out()

size_t casadi::CallbackInternal::get_n_out ( )
override

◆ get_name_in()

std::string casadi::CallbackInternal::get_name_in ( casadi_int  i)
override

◆ get_name_out()

std::string casadi::CallbackInternal::get_name_out ( casadi_int  i)
override

◆ get_reverse()

Function casadi::CallbackInternal::get_reverse ( casadi_int  nadj,
const std::string &  name,
const std::vector< std::string > &  inames,
const std::vector< std::string > &  onames,
const Dict opts 
) const
override

◆ get_sparsity_in()

Sparsity casadi::CallbackInternal::get_sparsity_in ( casadi_int  i)
override

◆ get_sparsity_out()

Sparsity casadi::CallbackInternal::get_sparsity_out ( casadi_int  i)
override

◆ has_eval_buffer()

bool casadi::CallbackInternal::has_eval_buffer ( ) const

◆ has_eval_dm()

bool casadi::CallbackInternal::has_eval_dm ( ) const
inlineoverride

◆ has_forward()

bool casadi::CallbackInternal::has_forward ( casadi_int  nfwd) const
override

◆ has_jac_sparsity()

bool casadi::CallbackInternal::has_jac_sparsity ( casadi_int  oind,
casadi_int  iind 
) const
override

◆ has_jacobian()

bool casadi::CallbackInternal::has_jacobian ( ) const
override

◆ has_reverse()

bool casadi::CallbackInternal::has_reverse ( casadi_int  nadj) const
override

◆ init()

void casadi::CallbackInternal::init ( const Dict opts)
override

◆ uses_output()

bool casadi::CallbackInternal::uses_output ( ) const
override

Friends And Related Function Documentation

◆ CallbackFunction

friend class CallbackFunction
friend

Definition at line 34 of file callback_internal.hpp.

Member Data Documentation

◆ has_eval_buffer_

bool casadi::CallbackInternal::has_eval_buffer_

Definition at line 154 of file callback_internal.hpp.

◆ self_

Callback* casadi::CallbackInternal::self_

◆ sizes_arg_

std::vector<casadi_int> casadi::CallbackInternal::sizes_arg_

Definition at line 153 of file callback_internal.hpp.

◆ sizes_res_

std::vector<casadi_int> casadi::CallbackInternal::sizes_res_

Definition at line 153 of file callback_internal.hpp.


The documentation for this class was generated from the following file: