#include <factory.hpp>
Definition at line 52 of file factory.hpp.
Public Member Functions | |
| Block | block (const std::string &s1, const std::string &s) const |
| HBlock | hblock (const std::string &s1, const std::string &s) const |
| void | add_input (const std::string &s, const MatType &e, bool is_diff) |
| void | add_output (const std::string &s, const MatType &e, bool is_diff) |
| void | add_dual (const Function::AuxOut &aux) |
| std::string | request_input (const std::string &s) |
| std::string | request_output (const std::string &s) |
| void | calculate_fwd (const Dict &opts) |
| void | calculate_adj (const Dict &opts) |
| std::vector< Block >::iterator | find_jac (size_t f, size_t x) |
| std::vector< HBlock >::iterator | find_hess (size_t f, size_t x1, size_t x2) |
| void | calculate_jac (const Dict &opts) |
| void | calculate_grad (const Dict &opts) |
| void | calculate_hess (const Dict &opts, size_t f) |
| void | calculate_hess (const Dict &opts) |
| void | calculate (const Dict &opts=Dict()) |
| size_t | imap (const std::string &s) const |
| size_t | omap (const std::string &s) const |
| MatType | get_input (const std::string &s) |
| MatType | get_output (const std::string &s) |
| bool | has_in (const std::string &s) const |
| bool | has_out (const std::string &s) const |
| const std::vector< std::string > & | iname () const |
| std::vector< std::string > | iname (const std::vector< size_t > &ind) const |
| const std::vector< std::string > & | oname () const |
| std::vector< std::string > | oname (const std::vector< size_t > &ind) const |
Static Public Member Functions | |
| static bool | has_prefix (const std::string &s) |
| static std::pair< std::string, std::string > | split_prefix (const std::string &s) |
Public Attributes | |
| std::vector< MatType > | in_ |
| std::vector< MatType > | out_ |
| std::vector< std::string > | iname_ |
| std::vector< std::string > | oname_ |
| std::map< std::string, size_t > | imap_ |
| std::map< std::string, size_t > | omap_ |
| std::vector< bool > | is_diff_in_ |
| std::vector< bool > | is_diff_out_ |
| std::vector< size_t > | fwd_in_ |
| std::vector< size_t > | fwd_out_ |
| std::vector< size_t > | adj_in_ |
| std::vector< size_t > | adj_out_ |
| std::vector< Block > | jac_ |
| std::vector< Block > | grad_ |
| std::vector< HBlock > | hess_ |
| void casadi::Factory< MatType >::add_dual | ( | const Function::AuxOut & | aux | ) |
Definition at line 541 of file factory.hpp.
References casadi::dot().
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
| void casadi::Factory< MatType >::add_input | ( | const std::string & | s, |
| const MatType & | e, | ||
| bool | is_diff | ||
| ) |
Definition at line 159 of file factory.hpp.
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
| void casadi::Factory< MatType >::add_output | ( | const std::string & | s, |
| const MatType & | e, | ||
| bool | is_diff | ||
| ) |
Definition at line 170 of file factory.hpp.
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
| Block casadi::Factory< MatType >::block | ( | const std::string & | s1, |
| const std::string & | s | ||
| ) | const |
Definition at line 681 of file factory.hpp.
References casadi::Block::f, casadi::Block::s, and casadi::Block::x.
| void casadi::Factory< MatType >::calculate | ( | const Dict & | opts = Dict() | ) |
Definition at line 558 of file factory.hpp.
References casadi::str().
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
| void casadi::Factory< MatType >::calculate_adj | ( | const Dict & | opts | ) |
Definition at line 267 of file factory.hpp.
References casadi::reverse().
| void casadi::Factory< MatType >::calculate_fwd | ( | const Dict & | opts | ) |
Definition at line 237 of file factory.hpp.
| void casadi::Factory< MatType >::calculate_grad | ( | const Dict & | opts | ) |
Definition at line 389 of file factory.hpp.
| void casadi::Factory< MatType >::calculate_hess | ( | const Dict & | opts | ) |
Definition at line 518 of file factory.hpp.
| void casadi::Factory< MatType >::calculate_hess | ( | const Dict & | opts, |
| size_t | f | ||
| ) |
Definition at line 404 of file factory.hpp.
| void casadi::Factory< MatType >::calculate_jac | ( | const Dict & | opts | ) |
Definition at line 313 of file factory.hpp.
| std::vector< HBlock >::iterator casadi::Factory< MatType >::find_hess | ( | size_t | f, |
| size_t | x1, | ||
| size_t | x2 | ||
| ) |
Definition at line 304 of file factory.hpp.
| std::vector< Block >::iterator casadi::Factory< MatType >::find_jac | ( | size_t | f, |
| size_t | x | ||
| ) |
Definition at line 295 of file factory.hpp.
| MatType casadi::Factory< MatType >::get_input | ( | const std::string & | s | ) |
Definition at line 596 of file factory.hpp.
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
| MatType casadi::Factory< MatType >::get_output | ( | const std::string & | s | ) |
Definition at line 603 of file factory.hpp.
References casadi::Sparsity::diag(), and casadi::has_prefix().
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
|
inline |
Definition at line 144 of file factory.hpp.
References casadi::Factory< MatType >::imap_.
|
inline |
Definition at line 147 of file factory.hpp.
References casadi::Factory< MatType >::omap_.
|
static |
Definition at line 635 of file factory.hpp.
| HBlock casadi::Factory< MatType >::hblock | ( | const std::string & | s1, |
| const std::string & | s | ||
| ) | const |
Definition at line 693 of file factory.hpp.
References casadi::HBlock::f, casadi::HBlock::s, casadi::HBlock::x1, and casadi::HBlock::x2.
| size_t casadi::Factory< MatType >::imap | ( | const std::string & | s | ) | const |
Definition at line 665 of file factory.hpp.
References casadi::join().
|
inline |
| std::vector< std::string > casadi::Factory< MatType >::iname | ( | const std::vector< size_t > & | ind | ) | const |
Definition at line 651 of file factory.hpp.
| size_t casadi::Factory< MatType >::omap | ( | const std::string & | s | ) | const |
|
inline |
| std::vector< std::string > casadi::Factory< MatType >::oname | ( | const std::vector< size_t > & | ind | ) | const |
Definition at line 658 of file factory.hpp.
| std::string casadi::Factory< MatType >::request_input | ( | const std::string & | s | ) |
Definition at line 181 of file factory.hpp.
References casadi::has_prefix(), and casadi::join().
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
| std::string casadi::Factory< MatType >::request_output | ( | const std::string & | s | ) |
Definition at line 205 of file factory.hpp.
References casadi::has_prefix(), casadi::join(), and casadi::replace().
Referenced by casadi::XFunction< DerivedType, MatType, NodeType >::factory().
|
static |
Definition at line 641 of file factory.hpp.
| std::vector<size_t> casadi::Factory< MatType >::adj_in_ |
Definition at line 69 of file factory.hpp.
| std::vector<size_t> casadi::Factory< MatType >::adj_out_ |
Definition at line 69 of file factory.hpp.
| std::vector<size_t> casadi::Factory< MatType >::fwd_in_ |
Definition at line 66 of file factory.hpp.
| std::vector<size_t> casadi::Factory< MatType >::fwd_out_ |
Definition at line 66 of file factory.hpp.
| std::vector<Block> casadi::Factory< MatType >::grad_ |
Definition at line 72 of file factory.hpp.
| std::vector<HBlock> casadi::Factory< MatType >::hess_ |
Definition at line 75 of file factory.hpp.
| std::map<std::string, size_t> casadi::Factory< MatType >::imap_ |
Definition at line 62 of file factory.hpp.
Referenced by casadi::Factory< MatType >::has_in().
| std::vector<MatType> casadi::Factory< MatType >::in_ |
Definition at line 56 of file factory.hpp.
| std::vector<std::string> casadi::Factory< MatType >::iname_ |
Definition at line 59 of file factory.hpp.
Referenced by casadi::Factory< MatType >::iname().
| std::vector<bool> casadi::Factory< MatType >::is_diff_in_ |
Definition at line 63 of file factory.hpp.
| std::vector<bool> casadi::Factory< MatType >::is_diff_out_ |
Definition at line 63 of file factory.hpp.
| std::vector<Block> casadi::Factory< MatType >::jac_ |
Definition at line 72 of file factory.hpp.
| std::map<std::string, size_t> casadi::Factory< MatType >::omap_ |
Definition at line 62 of file factory.hpp.
Referenced by casadi::Factory< MatType >::has_out().
| std::vector<std::string> casadi::Factory< MatType >::oname_ |
Definition at line 59 of file factory.hpp.
Referenced by casadi::Factory< MatType >::oname().
| std::vector<MatType> casadi::Factory< MatType >::out_ |
Definition at line 56 of file factory.hpp.