|
| SolveUnity (const MX &r, const MX &A) |
| Constructor. More...
|
|
| ~SolveUnity () override |
| Destructor. More...
|
|
std::string | mod_prefix () const override |
| Modifier for linear system, before argument. More...
|
|
std::string | mod_suffix () const override |
| Modifier for linear system, after argument. More...
|
|
const Sparsity & | A_sp () const override |
| Sparsity pattern for the linear system. More...
|
|
std::string | disp (const std::vector< std::string > &arg) const override |
| Print expression. More...
|
|
void | disp (std::ostream &stream, bool more) const override |
| Print a description. More...
|
|
void | eval_mx (const std::vector< MX > &arg, std::vector< MX > &res) const override |
| Evaluate symbolically (MX) More...
|
|
void | ad_forward (const std::vector< std::vector< MX > > &fseed, std::vector< std::vector< MX > > &fsens) const override |
| Calculate forward mode directional derivatives. More...
|
|
void | ad_reverse (const std::vector< std::vector< MX > > &aseed, std::vector< std::vector< MX > > &asens) const override |
| Calculate reverse mode directional derivatives. More...
|
|
casadi_int | n_inplace () const override |
| Can the operation be performed inplace (i.e. overwrite the result) More...
|
|
int | sp_forward (const bvec_t **arg, bvec_t **res, casadi_int *iw, bvec_t *w) const override |
| Propagate sparsity forward. More...
|
|
int | sp_reverse (bvec_t **arg, bvec_t **res, casadi_int *iw, bvec_t *w) const override |
| Propagate sparsity backwards. More...
|
|
casadi_int | op () const override |
| Get the operation. More...
|
|
Dict | info () const override |
|
virtual MX | solve (const MX &A, const MX &B, bool tr) const =0 |
| Solve another system with the same factorization. More...
|
|
void | serialize_body (SerializingStream &s) const override |
| Serialize an object without type information. More...
|
|
void | serialize_type (SerializingStream &s) const override |
| Serialize type information. More...
|
|
virtual bool | __nonzero__ () const |
| Check the truth value of this node. More...
|
|
virtual bool | is_zero () const |
| Check if identically zero. More...
|
|
virtual bool | is_one () const |
| Check if identically one. More...
|
|
virtual bool | is_minus_one () const |
| Check if identically minus one. More...
|
|
virtual bool | is_value (double val) const |
| Check if a certain value. More...
|
|
virtual bool | is_eye () const |
| Check if identity matrix. More...
|
|
virtual bool | is_unary () const |
| Check if unary operation. More...
|
|
virtual bool | is_binary () const |
| Check if binary operation. More...
|
|
void | can_inline (std::map< const MXNode *, casadi_int > &nodeind) const |
| Find out which nodes can be inlined. More...
|
|
std::string | print_compact (std::map< const MXNode *, casadi_int > &nodeind, std::vector< std::string > &intermed) const |
| Print compact. More...
|
|
virtual void | add_dependency (CodeGenerator &g) const |
| Add a dependent function. More...
|
|
virtual bool | has_refcount () const |
| Is reference counting needed in codegen? More...
|
|
virtual void | codegen_incref (CodeGenerator &g, std::set< void * > &added) const |
| Codegen incref. More...
|
|
virtual void | codegen_decref (CodeGenerator &g, std::set< void * > &added) const |
| Codegen decref. More...
|
|
virtual void | generate (CodeGenerator &g, const std::vector< casadi_int > &arg, const std::vector< casadi_int > &res) const |
| Generate code for the operation. More...
|
|
virtual int | eval (const double **arg, double **res, casadi_int *iw, double *w) const |
| Evaluate numerically. More...
|
|
virtual int | eval_sx (const SXElem **arg, SXElem **res, casadi_int *iw, SXElem *w) const |
| Evaluate symbolically (SX) More...
|
|
virtual const std::string & | name () const |
| Get the name. More...
|
|
std::string | class_name () const override |
| Get name of public class. More...
|
|
virtual bool | is_valid_input () const |
| Check if valid function input. More...
|
|
virtual casadi_int | n_primitives () const |
| Get the number of symbolic primitives. More...
|
|
virtual void | primitives (std::vector< MX >::iterator &it) const |
| Get symbolic primitives. More...
|
|
template<typename T > |
T | join_primitives_gen (typename std::vector< T >::const_iterator &it) const |
| Join an expression along symbolic primitives (template) More...
|
|
virtual bool | has_duplicates () const |
| Detect duplicate symbolic expressions. More...
|
|
virtual void | reset_input () const |
| Reset the marker for an input expression. More...
|
|
virtual bool | is_output () const |
| Check if evaluation output. More...
|
|
virtual bool | has_output () const |
| Check if a multiple output node. More...
|
|
virtual casadi_int | which_output () const |
| Get function output. More...
|
|
virtual const Function & | which_function () const |
| Get called function. More...
|
|
void | serialize (SerializingStream &s) const |
| Serialize an object. More...
|
|
virtual bool | is_equal (const MXNode *node, casadi_int depth) const |
|
bool | sameOpAndDeps (const MXNode *node, casadi_int depth) const |
| Checks if two nodes have the same operation and have. More...
|
|
const MX & | dep (casadi_int ind=0) const |
| dependencies - functions that have to be evaluated before this one More...
|
|
casadi_int | n_dep () const |
| Number of dependencies. More...
|
|
virtual casadi_int | nout () const |
| Number of outputs. More...
|
|
virtual MX | get_output (casadi_int oind) const |
| Get an output. More...
|
|
const Sparsity & | sparsity () const |
| Get the sparsity. More...
|
|
virtual const Sparsity & | sparsity (casadi_int oind) const |
| Get the sparsity of output oind. More...
|
|
template<class T > |
bool | matches_sparsity (const std::vector< T > &arg) const |
|
casadi_int | numel () const |
| Get shape. More...
|
|
casadi_int | nnz (casadi_int i=0) const |
|
casadi_int | size1 () const |
|
casadi_int | size2 () const |
|
std::pair< casadi_int, casadi_int > | size () const |
|
virtual casadi_int | ind () const |
|
virtual casadi_int | segment () const |
|
virtual casadi_int | offset () const |
|
void | set_sparsity (const Sparsity &sparsity) |
| Set the sparsity. More...
|
|
virtual size_t | sz_arg () const |
| Get required length of arg field. More...
|
|
virtual size_t | sz_res () const |
| Get required length of res field. More...
|
|
virtual size_t | sz_iw () const |
| Get required length of iw field. More...
|
|
virtual size_t | sz_w () const |
| Get required length of w field. More...
|
|
void | set_dep (const MX &dep) |
| Set unary dependency. More...
|
|
void | set_dep (const MX &dep1, const MX &dep2) |
| Set binary dependencies. More...
|
|
void | set_dep (const MX &dep1, const MX &dep2, const MX &dep3) |
| Set ternary dependencies. More...
|
|
void | set_dep (const std::vector< MX > &dep) |
| Set multiple dependencies. More...
|
|
virtual double | to_double () const |
| Get the value (only for scalar constant nodes) More...
|
|
virtual DM | get_DM () const |
| Get the value (only for constant nodes) More...
|
|
virtual Matrix< casadi_int > | mapping () const |
| Get an IM representation of a GetNonzeros or SetNonzeros node. More...
|
|
virtual MX | get_horzcat (const std::vector< MX > &x) const |
| Create a horizontal concatenation node. More...
|
|
virtual std::vector< MX > | get_horzsplit (const std::vector< casadi_int > &output_offset) const |
| Create a horizontal split node. More...
|
|
virtual MX | get_repmat (casadi_int m, casadi_int n) const |
| Create a repeated matrix node. More...
|
|
virtual MX | get_repsum (casadi_int m, casadi_int n) const |
| Create a repeated sum node. More...
|
|
virtual MX | get_vertcat (const std::vector< MX > &x) const |
| Create a vertical concatenation node (vectors only) More...
|
|
virtual std::vector< MX > | get_vertsplit (const std::vector< casadi_int > &output_offset) const |
| Create a vertical split node (vectors only) More...
|
|
virtual MX | get_diagcat (const std::vector< MX > &x) const |
| Create a diagonal concatenation node. More...
|
|
virtual std::vector< MX > | get_diagsplit (const std::vector< casadi_int > &offset1, const std::vector< casadi_int > &offset2) const |
| Create a diagonal split node. More...
|
|
virtual MX | get_transpose () const |
| Transpose. More...
|
|
virtual MX | get_reshape (const Sparsity &sp) const |
| Reshape. More...
|
|
virtual MX | get_sparsity_cast (const Sparsity &sp) const |
| Sparsity cast. More...
|
|
virtual MX | get_mac (const MX &y, const MX &z) const |
| Matrix multiplication and addition. More...
|
|
virtual MX | get_einstein (const MX &A, const MX &B, const std::vector< casadi_int > &dim_c, const std::vector< casadi_int > &dim_a, const std::vector< casadi_int > &dim_b, const std::vector< casadi_int > &c, const std::vector< casadi_int > &a, const std::vector< casadi_int > &b) const |
| Einstein product and addition. More...
|
|
virtual MX | get_bilin (const MX &x, const MX &y) const |
| Bilinear form. More...
|
|
virtual MX | get_rank1 (const MX &alpha, const MX &x, const MX &y) const |
| Bilinear form. More...
|
|
virtual MX | get_logsumexp () const |
| Logsumexp. More...
|
|
virtual MX | get_solve (const MX &r, bool tr, const Linsol &linear_solver) const |
| Solve a system of linear equations. More...
|
|
virtual MX | get_solve_triu (const MX &r, bool tr) const |
| Solve a system of linear equations, upper triangular A. More...
|
|
virtual MX | get_solve_tril (const MX &r, bool tr) const |
| Solve a system of linear equations, lower triangular A. More...
|
|
virtual MX | get_solve_triu_unity (const MX &r, bool tr) const |
| Solve a system of linear equations, upper triangular A, unity diagonal. More...
|
|
virtual MX | get_solve_tril_unity (const MX &r, bool tr) const |
| Solve a system of linear equations, lower triangular A, unity diagnal. More...
|
|
virtual MX | get_nzref (const Sparsity &sp, const std::vector< casadi_int > &nz) const |
| Get the nonzeros of matrix. More...
|
|
virtual MX | get_nz_ref (const MX &nz) const |
| Get the nonzeros of matrix, parametrically. More...
|
|
virtual MX | get_nz_ref (const MX &inner, const Slice &outer) const |
| Get the nonzeros of matrix, parametrically. More...
|
|
virtual MX | get_nz_ref (const Slice &inner, const MX &outer) const |
| Get the nonzeros of matrix, parametrically. More...
|
|
virtual MX | get_nz_ref (const MX &inner, const MX &outer) const |
| Get the nonzeros of matrix, parametrically. More...
|
|
virtual MX | get_nzassign (const MX &y, const std::vector< casadi_int > &nz) const |
| Assign the nonzeros of a matrix to another matrix. More...
|
|
virtual MX | get_nzassign (const MX &y, const MX &nz) const |
| Assign the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_nzassign (const MX &y, const MX &inner, const Slice &outer) const |
| Assign the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_nzassign (const MX &y, const Slice &inner, const MX &outer) const |
| Assign the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_nzassign (const MX &y, const MX &inner, const MX &outer) const |
| Assign the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_nzadd (const MX &y, const std::vector< casadi_int > &nz) const |
| Add the nonzeros of a matrix to another matrix. More...
|
|
virtual MX | get_nzadd (const MX &y, const MX &nz) const |
| Add the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_nzadd (const MX &y, const MX &inner, const Slice &outer) const |
| Add the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_nzadd (const MX &y, const Slice &inner, const MX &outer) const |
| Add the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_nzadd (const MX &y, const MX &inner, const MX &outer) const |
| Add the nonzeros of a matrix to another matrix, parametrically. More...
|
|
virtual MX | get_subref (const Slice &i, const Slice &j) const |
| Get submatrix reference. More...
|
|
virtual MX | get_subassign (const MX &y, const Slice &i, const Slice &j) const |
| Get submatrix assignment. More...
|
|
virtual MX | get_project (const Sparsity &sp) const |
| Create set sparse. More...
|
|
virtual MX | get_unary (casadi_int op) const |
| Get a unary operation. More...
|
|
MX | get_binary (casadi_int op, const MX &y) const |
| Get a binary operation operation. More...
|
|
virtual MX | _get_binary (casadi_int op, const MX &y, bool scX, bool scY) const |
| Get a binary operation operation (matrix-matrix) More...
|
|
virtual MX | get_det () const |
| Determinant. More...
|
|
virtual MX | get_inv () const |
| Inverse. More...
|
|
virtual MX | get_dot (const MX &y) const |
| Inner product. More...
|
|
virtual MX | get_norm_fro () const |
| Frobenius norm. More...
|
|
virtual MX | get_norm_2 () const |
| Spectral norm. More...
|
|
virtual MX | get_norm_inf () const |
| Infinity norm. More...
|
|
virtual MX | get_norm_1 () const |
| 1-norm More...
|
|
virtual MX | get_mmin () const |
| Min. More...
|
|
virtual MX | get_mmax () const |
| Max. More...
|
|
MX | get_assert (const MX &y, const std::string &fail_message) const |
| Assertion. More...
|
|
MX | get_monitor (const std::string &comment) const |
| Monitor. More...
|
|
MX | get_find () const |
| Find. More...
|
|
MX | get_low (const MX &v, const Dict &options) const |
| Find. More...
|
|
MX | get_bspline (const std::vector< double > &knots, const std::vector< casadi_int > &offset, const std::vector< double > &coeffs, const std::vector< casadi_int > °ree, casadi_int m, const std::vector< casadi_int > &lookup_mode) const |
| BSpline. More...
|
|
MX | get_bspline (const MX &coeffs, const std::vector< double > &knots, const std::vector< casadi_int > &offset, const std::vector< casadi_int > °ree, casadi_int m, const std::vector< casadi_int > &lookup_mode) const |
| BSpline. More...
|
|
MX | get_convexify (const Dict &opts) const |
| Convexify. More...
|
|
|
virtual void | split_primitives (const MX &x, std::vector< MX >::iterator &it) const |
| Split up an expression along symbolic primitives. More...
|
|
virtual void | split_primitives (const SX &x, std::vector< SX >::iterator &it) const |
| Split up an expression along symbolic primitives. More...
|
|
virtual void | split_primitives (const DM &x, std::vector< DM >::iterator &it) const |
| Split up an expression along symbolic primitives. More...
|
|
|
virtual MX | join_primitives (std::vector< MX >::const_iterator &it) const |
| Join an expression along symbolic primitives. More...
|
|
virtual SX | join_primitives (std::vector< SX >::const_iterator &it) const |
| Join an expression along symbolic primitives. More...
|
|
virtual DM | join_primitives (std::vector< DM >::const_iterator &it) const |
| Join an expression along symbolic primitives. More...
|
|