MX - Matrix expression. More...
#include <mx.hpp>
The MX class is used to build up trees made up from MXNodes. It is a more general graph representation than the scalar expression, SX, and much less efficient for small objects. On the other hand, the class allows much more general operations than does SX, in particular matrix valued operations and calls to arbitrary differentiable functions.
The MX class is designed to have identical syntax with the Matrix<> template class, and uses DM (i.e. Matrix<double>) as its internal representation of the values at a node. By keeping the syntaxes identical, it is possible to switch from one class to the other, as well as inlining MX functions to SXElem functions.
Note that an operation is always "lazy", making a matrix multiplication will create a matrix multiplication node, not perform the actual multiplication.
Extra doc: https://github.com/casadi/casadi/wiki/L_py


Public Types | |
| typedef MX | ScalarType |
| typedef GenericMatrix< MX > | B |
| Base class. More... | |
| typedef std::map< std::string, MX > | MXDict |
| Readability typedef. More... | |
| using | internal_base_type = SharedObjectInternal |
| using | base_type = SharedObject |
Public Member Functions | |
| MX () | |
| Default constructor. More... | |
| MX (casadi_int nrow, casadi_int ncol) | |
| Create a sparse matrix with all structural zeros. More... | |
| MX (const std::pair< casadi_int, casadi_int > &rc) | |
| Create a sparse matrix with all structural zeros. More... | |
| MX (const Sparsity &sp) | |
| Create a sparse matrix from a sparsity pattern. More... | |
| MX (const Sparsity &sp, const MX &val) | |
| Construct matrix with a given sparsity and nonzeros. More... | |
| MX (const Sparsity &sp, const std::string &fname) | |
| Construct matrix with a given sparsity and a file with nonzeros. More... | |
| MX (const Matrix< double > &val, const std::string &name) | |
| Construct matrix with a given sparsity and nonzeros,. More... | |
| MX (double x) | |
| Create scalar constant (also implicit type conversion) More... | |
| MX (const std::vector< double > &x) | |
| Create vector constant (also implicit type conversion) More... | |
| MX (const Matrix< double > &x) | |
| Create sparse matrix constant (also implicit type conversion) More... | |
| ~MX () | |
| Destructor. More... | |
| const Sparsity & | sparsity () const |
| Get the sparsity pattern. More... | |
| bool | __nonzero__ () const |
| Returns the truth value of an MX expression. More... | |
| Sparsity | get_sparsity () const |
| Get an owning reference to the sparsity pattern. More... | |
| std::vector< MX > | get_nonzeros () const |
| Get nonzeros as list of scalar MXes. More... | |
| void | erase (const std::vector< casadi_int > &rr, const std::vector< casadi_int > &cc, bool ind1=false) |
| Erase a submatrix (leaving structural zeros in its place) More... | |
| void | erase (const std::vector< casadi_int > &rr, bool ind1=false) |
| Erase a submatrix (leaving structural zeros in its place) More... | |
| void | enlarge (casadi_int nrow, casadi_int ncol, const std::vector< casadi_int > &rr, const std::vector< casadi_int > &cc, bool ind1=false) |
| Enlarge matrix. More... | |
| MX | operator- () const |
| MX | operator+ () const |
| MX | inv () const |
| Element-wise inverse. More... | |
| MX | dep (casadi_int ch=0) const |
| Get the nth dependency as MX. More... | |
| casadi_int | n_out () const |
| Number of outputs. More... | |
| MX | get_output (casadi_int oind) const |
| Get an output. More... | |
| casadi_int | n_dep () const |
| Get the number of dependencies of a binary SXElem. More... | |
| std::string | name () const |
| Get the name. More... | |
| operator double () const | |
| Get the value (only for scalar constant nodes) More... | |
| operator Matrix< double > () const | |
| Get the value (only for constant nodes) More... | |
| bool | is_symbolic () const |
| Check if symbolic. More... | |
| bool | is_constant () const |
| Check if constant. More... | |
| bool | is_integer () const |
| Check if integer. More... | |
| bool | is_doubled () const |
| Check if the node is the sum of two equal expressions. More... | |
| bool | is_call () const |
| Check if evaluation. More... | |
| Function | which_function () const |
| Get function - only valid when is_call() is true. More... | |
| bool | is_output () const |
| Check if evaluation output. More... | |
| bool | has_output () const |
| Check if a multiple output node. More... | |
| casadi_int | which_output () const |
| Get the index of evaluation output - only valid when is_output() is true. More... | |
| bool | is_op (casadi_int op) const |
| Is it a certain operation. More... | |
| bool | is_multiplication () const |
| Check if multiplication. More... | |
| bool | is_commutative () const |
| Check if commutative operation. More... | |
| bool | is_norm () const |
| Check if norm. More... | |
| bool | is_valid_input () const |
| Check if matrix can be used to define function inputs. More... | |
| casadi_int | n_primitives () const |
| Get the number of primitives for MXFunction inputs/outputs. More... | |
| std::vector< MX > | primitives () const |
| Get primitives. More... | |
| bool | has_duplicates () const |
| Detect duplicate symbolic expressions. More... | |
| void | reset_input () const |
| Reset the marker for an input expression. More... | |
| bool | is_eye () const |
| check if identity More... | |
| bool | is_zero () const |
| check if zero (note that false negative answers are possible) More... | |
| bool | is_one () const |
| check if one (note that false negative answers are possible) More... | |
| bool | is_minus_one () const |
| check if minus one (note that false negative answers are possible) More... | |
| bool | is_half () const |
| check if 0.5 (note that false negative answers are possible) More... | |
| bool | is_value (double val) const |
| check if a certain value (note that false negative answers are possible) More... | |
| bool | is_inf () const |
| check if inf (note that false negative answers are possible) More... | |
| bool | is_minus_inf () const |
| check if -inf (note that false negative answers are possible) More... | |
| bool | is_transpose () const |
| Is the expression a transpose? More... | |
| bool | is_regular () const |
| Checks if expression does not contain NaN or Inf. More... | |
| bool | is_binary () const |
| Is binary operation. More... | |
| bool | is_nonnegative () const |
| Check if a value is always nonnegative (false negatives are allowed) More... | |
| bool | is_unary () const |
| Is unary operation. More... | |
| casadi_int | op () const |
| Get operation type. More... | |
| Dict | info () const |
| void | serialize (SerializingStream &s) const |
| Serialize an object. More... | |
| casadi_int | get_temp () const |
| void | set_temp (casadi_int t) const |
| Set the temporary variable. More... | |
| MXNode * | get () const |
| Get a const pointer to the node. More... | |
| MX | nzref (const Sparsity &sp, const std::vector< casadi_int > &nz) const |
| Low-level access to get_nzref. More... | |
| MX | printme (const MX &b) const |
| MX | attachAssert (const MX &y, const std::string &fail_message="") const |
| returns itself, but with an assertion attached More... | |
| MX | monitor (const std::string &comment) const |
| Monitor an expression. More... | |
| MX | dump (const std::string &base_filename, const Dict &opts=Dict()) const |
| Dump an expression. More... | |
| void | reset_dump_count () |
| Reset the dump counter. More... | |
| MX | T () const |
| Transpose the matrix. More... | |
| Matrix< casadi_int > | mapping () const |
| Get an IM representation of a GetNonzeros or SetNonzeros node. More... | |
| void | eval_mx (const std::vector< MX > &arg, std::vector< MX > &res, const std::vector< bool > &unique=std::vector< bool >()) const |
| Evaluate the MX node with new symbolic dependencies. More... | |
| MX (const Sparsity &sp, double val, bool dummy) | |
| Construct constant matrix with a given sparsity and values. More... | |
| casadi_int | nnz () const |
| Get the number of (structural) non-zero elements. More... | |
| casadi_int | nnz_lower () const |
| Get the number of non-zeros in the lower triangular half. More... | |
| casadi_int | nnz_upper () const |
| Get the number of non-zeros in the upper triangular half. More... | |
| casadi_int | nnz_diag () const |
| Get get the number of non-zeros on the diagonal. More... | |
| casadi_int | numel () const |
| Get the number of elements. More... | |
| casadi_int | size1 () const |
| Get the first dimension (i.e. number of rows) More... | |
| casadi_int | rows () const |
| Get the number of rows, Octave-style syntax. More... | |
| casadi_int | size2 () const |
| Get the second dimension (i.e. number of columns) More... | |
| casadi_int | columns () const |
| Get the number of columns, Octave-style syntax. More... | |
| std::string | dim (bool with_nz=false) const |
| Get string representation of dimensions. More... | |
| std::pair< casadi_int, casadi_int > | size () const |
| Get the shape. More... | |
| casadi_int | size (casadi_int axis) const |
| Get the size along a particular dimensions. More... | |
| bool | is_empty (bool both=false) const |
| Check if the sparsity is empty, i.e. if one of the dimensions is zero. More... | |
| bool | is_dense () const |
| Check if the matrix expression is dense. More... | |
| bool | is_scalar (bool scalar_and_dense=false) const |
| Check if the matrix expression is scalar. More... | |
| bool | is_square () const |
| Check if the matrix expression is square. More... | |
| bool | is_vector () const |
| Check if the matrix is a row or column vector. More... | |
| bool | is_row () const |
| Check if the matrix is a row vector (i.e. size1()==1) More... | |
| bool | is_column () const |
| Check if the matrix is a column vector (i.e. size2()==1) More... | |
| bool | is_triu () const |
| Check if the matrix is upper triangular. More... | |
| bool | is_tril () const |
| Check if the matrix is lower triangular. More... | |
| const MX | nz (const K &k) const |
| Get vector nonzero or slice of nonzeros. More... | |
| NonZeros< MX, K > | nz (const K &k) |
| Access vector nonzero or slice of nonzeros. More... | |
| const MX | operator() (const RR &rr) const |
| Get vector element or slice. More... | |
| const MX | operator() (const RR &rr, const CC &cc) const |
| Get Matrix element or slice. More... | |
| SubIndex< MX, RR > | operator() (const RR &rr) |
| Access Matrix elements (one argument) More... | |
| SubMatrix< MX, RR, CC > | operator() (const RR &rr, const CC &cc) |
| Access Matrix elements (two arguments) More... | |
| std::string | class_name () const |
| Get class name. More... | |
| void | disp (std::ostream &stream, bool more=false) const |
| Print a description of the object. More... | |
| std::string | get_str (bool more=false) const |
| Get string representation. More... | |
| void | print_ptr (std::ostream &stream=casadi::uout()) const |
| void | own (SharedObjectInternal *node) |
| void | assign (SharedObjectInternal *node) |
| Assign the node to a node class pointer without reference counting. More... | |
| casadi_int | getCount () const |
| Get the reference count. More... | |
| void | swap (GenericShared &other) |
| Swap content with another instance. More... | |
| std::string | debug_repr () const |
| bool | is_null () const |
| Is a null pointer? More... | |
| casadi_int | __hash__ () const |
| Returns a number that is unique for a given Node. More... | |
| GenericWeakRef< SharedObject, SharedObjectInternal > * | weak () |
| Get a weak reference to the object. More... | |
| MXNode * | operator-> () |
| Access a member of the node. More... | |
| const MXNode * | operator-> () const |
| Const access a member of the node. More... | |
| std::vector< MX > | split_primitives (const MX &x) const |
| Split up an expression along symbolic primitives. More... | |
| std::vector< SX > | split_primitives (const SX &x) const |
| Split up an expression along symbolic primitives. More... | |
| std::vector< DM > | split_primitives (const DM &x) const |
| Split up an expression along symbolic primitives. More... | |
| MX | join_primitives (const std::vector< MX > &v) const |
| Join an expression along symbolic primitives. More... | |
| SX | join_primitives (const std::vector< SX > &v) const |
| Join an expression along symbolic primitives. More... | |
| DM | join_primitives (const std::vector< DM > &v) const |
| Join an expression along symbolic primitives. More... | |
| void | get (MX &m, bool ind1, const Slice &rr) const |
| void | get (MX &m, bool ind1, const Matrix< casadi_int > &rr) const |
| void | get (MX &m, bool ind1, const Sparsity &sp) const |
| void | get (MX &m, bool ind1, const MX &rr) const |
| void | get (MX &m, bool ind1, const casadi_int rr) const |
| void | get (MX &m, bool ind1, const Slice &rr, const Slice &cc) const |
| void | get (MX &m, bool ind1, const Slice &rr, const Matrix< casadi_int > &cc) const |
| void | get (MX &m, bool ind1, const Slice &rr, casadi_int cc) const |
| void | get (MX &m, bool ind1, const Matrix< casadi_int > &rr, const Slice &cc) const |
| void | get (MX &m, bool ind1, casadi_int rr, const Slice &cc) const |
| void | get (MX &m, bool ind1, const Matrix< casadi_int > &rr, const Matrix< casadi_int > &cc) const |
| void | get (MX &m, bool ind1, casadi_int rr, casadi_int cc) const |
| void | get (MX &m, bool ind1, const MX &rr, const Slice &cc) const |
| void | get (MX &m, bool ind1, const Slice &rr, const MX &cc) const |
| void | get (MX &m, bool ind1, const MX &rr, const MX &cc) const |
| void | set (const MX &m, bool ind1, const Slice &rr) |
| void | set (const MX &m, bool ind1, const Matrix< casadi_int > &rr) |
| void | set (const MX &m, bool ind1, const Sparsity &sp) |
| void | set (const MX &m, bool ind1, const Slice &rr, const Slice &cc) |
| void | set (const MX &m, bool ind1, const Slice &rr, const Matrix< casadi_int > &cc) |
| void | set (const MX &m, bool ind1, const Matrix< casadi_int > &rr, const Slice &cc) |
| void | set (const MX &m, bool ind1, const Matrix< casadi_int > &rr, const Matrix< casadi_int > &cc) |
| void | get_nz (MX &m, bool ind1, const Slice &kk) const |
| void | get_nz (MX &m, bool ind1, const Matrix< casadi_int > &kk) const |
| void | get_nz (MX &m, bool ind1, const MX &kk) const |
| void | get_nz (MX &m, bool ind1, casadi_int kk) const |
| void | get_nz (MX &m, bool ind1, const MX &inner, const Slice &outer) const |
| void | get_nz (MX &m, bool ind1, const Slice &inner, const MX &outer) const |
| void | get_nz (MX &m, bool ind1, const MX &inner, const MX &outer) const |
| void | set_nz (const MX &m, bool ind1, const Slice &kk) |
| void | set_nz (const MX &m, bool ind1, const Matrix< casadi_int > &kk) |
| void | set_nz (const MX &m, bool ind1, const MX &kk) |
| void | set_nz (const MX &m, bool ind1, casadi_int kk) |
| void | ad_forward (const std::vector< std::vector< MX > > &fseed, std::vector< std::vector< MX > > &fsens) const |
| Called from MXFunction. More... | |
| void | ad_reverse (const std::vector< std::vector< MX > > &aseed, std::vector< std::vector< MX > > &asens) const |
| Called from MXFunction. More... | |
| std::vector< casadi_int > | get_row () const |
| Get the sparsity pattern. See the Sparsity class for details. More... | |
| std::vector< casadi_int > | get_colind () const |
| Get the sparsity pattern. See the Sparsity class for details. More... | |
| const casadi_int * | row () const |
| Get the sparsity pattern. See the Sparsity class for details. More... | |
| casadi_int | row (casadi_int el) const |
| Get the sparsity pattern. See the Sparsity class for details. More... | |
| const casadi_int * | colind () const |
| Get the sparsity pattern. See the Sparsity class for details. More... | |
| casadi_int | colind (casadi_int col) const |
| Get the sparsity pattern. See the Sparsity class for details. More... | |
Static Public Member Functions | |
| static std::string | type_name () |
| Get type name. More... | |
| static MX | create (MXNode *node) |
| Create from node. More... | |
| static std::vector< MX > | createMultipleOutput (MXNode *node) |
| Create from node (multiple-outputs) More... | |
| static MX | deserialize (DeserializingStream &s) |
| Deserialize with type disambiguation. More... | |
| static MX | eye (casadi_int n) |
| Identity matrix. More... | |
| static bool | simplify_ref_count (std::vector< MX > &arg, std::vector< MX > &res, const Dict &opts=Dict()) |
| static bool | simplify_const_folding (std::vector< MX > &arg, std::vector< MX > &res, const Dict &opts=Dict()) |
| static bool | simplify_combine_terms (std::vector< MX > &arg, std::vector< MX > &res, const Dict &opts=Dict()) |
| static DM | bspline_dual (const std::vector< double > &x, const std::vector< std::vector< double > > &knots, const std::vector< casadi_int > °ree, const Dict &opts=Dict()) |
| static MX | interpn_linear (const std::vector< MX > &x, const MX &v, const std::vector< MX > &xq, const Dict &opts=Dict()) |
| Low-level access to inlined linear interpolation. More... | |
| static void | set_max_depth (casadi_int eq_depth=1) |
| Set or reset the depth to which equalities are being checked for simplifications. More... | |
| static casadi_int | get_max_depth () |
| Get the depth to which equalities are being checked for simplifications. More... | |
| static bool | test_cast (const SharedObjectInternal *ptr) |
| Check if a particular cast is allowed. More... | |
| static std::vector< MX > | get_input (const Function &f) |
| Get function inputs. More... | |
| static std::vector< MX > | get_free (const Function &f) |
| Get free variables. More... | |
| static MX | _sym (const std::string &name, const Sparsity &sp) |
| static MX | logsumexp (const MX &x) |
| static MX | binary (casadi_int op, const MX &x, const MX &y, bool unique_x=false, bool unique_y=false) |
| Create nodes by their ID. More... | |
| static MX | unary (casadi_int op, const MX &x, bool unique=false) |
| Create nodes by their ID. More... | |
| static MX | inf (const Sparsity &sp) |
| create a matrix with all inf More... | |
| static MX | inf (casadi_int nrow=1, casadi_int ncol=1) |
| create a matrix with all inf More... | |
| static MX | inf (const std::pair< casadi_int, casadi_int > &rc) |
| create a matrix with all inf More... | |
| static MX | nan (const Sparsity &sp) |
| create a matrix with all nan More... | |
| static MX | nan (casadi_int nrow=1, casadi_int ncol=1) |
| create a matrix with all nan More... | |
| static MX | nan (const std::pair< casadi_int, casadi_int > &rc) |
| create a matrix with all nan More... | |
| static MX | einstein (const MX &A, const MX &B, const MX &C, const std::vector< casadi_int > &dim_a, const std::vector< casadi_int > &dim_b, const std::vector< casadi_int > &dim_c, const std::vector< casadi_int > &a, const std::vector< casadi_int > &b, const std::vector< casadi_int > &c) |
| Computes an einstein dense tensor contraction. More... | |
| static MX | einstein (const MX &A, const MX &B, const std::vector< casadi_int > &dim_a, const std::vector< casadi_int > &dim_b, const std::vector< casadi_int > &dim_c, const std::vector< casadi_int > &a, const std::vector< casadi_int > &b, const std::vector< casadi_int > &c) |
| Computes an einstein dense tensor contraction. More... | |
| static bool | is_equal (const MX &x, const MX &y, casadi_int depth=0) |
| static MX | mmin (const MX &x) |
| static MX | mmax (const MX &x) |
| static MX | horzcat (const std::vector< MX > &x) |
| static MX | diagcat (const std::vector< MX > &x) |
| static MX | vertcat (const std::vector< MX > &x) |
| static std::vector< MX > | horzsplit (const MX &x, const std::vector< casadi_int > &offset) |
| static std::vector< MX > | diagsplit (const MX &x, const std::vector< casadi_int > &offset1, const std::vector< casadi_int > &offset2) |
| static std::vector< MX > | vertsplit (const MX &x, const std::vector< casadi_int > &offset) |
| static MX | blockcat (const std::vector< std::vector< MX > > &v) |
| static MX | mtimes (const MX &x, const MX &y, const std::string &blas="reference") |
| static MX | mac (const MX &x, const MX &y, const MX &z, const std::string &blas="reference") |
| static MX | reshape (const MX &x, casadi_int nrow, casadi_int ncol) |
| static MX | reshape (const MX &x, const Sparsity &sp) |
| static MX | sparsity_cast (const MX &x, const Sparsity &sp) |
| static MX | kron (const MX &x, const MX &b) |
| static MX | kron_contract (const MX &m, const MX &x, bool inner) |
| static MX | repmat (const MX &x, casadi_int n, casadi_int m=1) |
| static MX | linspace (const MX &a, const MX &b, casadi_int nsteps) |
| static MX | jacobian (const MX &f, const MX &x, const Dict &opts=Dict()) |
| static MX | hessian (const MX &f, const MX &x, const Dict &opts=Dict()) |
| static MX | hessian (const MX &f, const MX &x, MX &g, const Dict &opts=Dict()) |
| static std::vector< std::vector< MX > > | forward (const std::vector< MX > &ex, const std::vector< MX > &arg, const std::vector< std::vector< MX > > &v, const Dict &opts=Dict()) |
| static std::vector< std::vector< MX > > | reverse (const std::vector< MX > &ex, const std::vector< MX > &arg, const std::vector< std::vector< MX > > &v, const Dict &opts=Dict()) |
| static std::vector< bool > | which_depends (const MX &expr, const MX &var, casadi_int order=1, bool tr=false) |
| static Sparsity | jacobian_sparsity (const MX &f, const MX &x) |
| static MX | substitute (const MX &ex, const MX &v, const MX &vdef) |
| static std::vector< MX > | substitute (const std::vector< MX > &ex, const std::vector< MX > &v, const std::vector< MX > &vdef) |
| static void | substitute_inplace (const std::vector< MX > &v, std::vector< MX > &vdef, std::vector< MX > &ex, bool reverse) |
| static MX | solve (const MX &a, const MX &b) |
| static MX | solve (const MX &a, const MX &b, const std::string &lsolver, const Dict &dict=Dict()) |
| static MX | inv_minor (const MX &A) |
| static MX | inv_node (const MX &A) |
| static MX | inv (const MX &A, const std::string &lsolver="qr", const Dict &dict=Dict()) |
| static MX | pinv (const MX &A, const std::string &lsolver="qr", const Dict &dict=Dict()) |
| static MX | expm_const (const MX &A, const MX &t) |
| static MX | expm (const MX &A) |
| static casadi_int | n_nodes (const MX &x) |
| static std::string | print_operator (const MX &x, const std::vector< std::string > &args) |
| static void | extract (std::vector< MX > &ex, std::vector< MX > &v, std::vector< MX > &vdef, const Dict &opts=Dict()) |
| static void | shared (std::vector< MX > &ex, std::vector< MX > &v, std::vector< MX > &vdef, const std::string &v_prefix, const std::string &v_suffix) |
| static MX | if_else (const MX &cond, const MX &if_true, const MX &if_false, bool short_circuit=false) |
| static MX | conditional (const MX &ind, const std::vector< MX > &x, const MX &x_default, bool short_circuit=false) |
| static bool | depends_on (const MX &x, const MX &arg) |
| static bool | contains_all (const std::vector< MX > &v, const std::vector< MX > &n) |
| static bool | contains_any (const std::vector< MX > &v, const std::vector< MX > &n) |
| static MX | simplify (const MX &x) |
| static MX | transform (const MX &x, const Dict &opts=Dict()) |
| static MX | transform (const MX &x, const std::vector< std::vector< GenericType > > &passes, const Dict &opts=Dict()) |
| static std::vector< MX > | transform (const std::vector< MX > &x, const Dict &opts=Dict()) |
| static std::vector< MX > | transform (const std::vector< MX > &x, const std::vector< std::vector< GenericType > > &passes, const Dict &opts=Dict()) |
| static MX | dot (const MX &x, const MX &y) |
| static MX | mrdivide (const MX &a, const MX &b) |
| static MX | mldivide (const MX &a, const MX &b) |
| static MX | norm_2 (const MX &x) |
| static MX | norm_fro (const MX &x) |
| static MX | norm_1 (const MX &x) |
| static MX | norm_inf (const MX &x) |
| static MX | unite (const MX &A, const MX &B) |
| static MX | trace (const MX &x) |
| static MX | diag (const MX &x) |
| static MX | sum2 (const MX &x) |
| static MX | sum1 (const MX &x) |
| static MX | polyval (const MX &p, const MX &x) |
| static MX | det (const MX &x) |
| static MX | det (const MX &x, const std::string &lsolver, const Dict &opts=Dict()) |
| static std::vector< MX > | symvar (const MX &x) |
| static MX | nullspace (const MX &A) |
| static MX | repsum (const MX &x, casadi_int n, casadi_int m=1) |
| static MX | densify (const MX &x, const MX &val=0) |
| static MX | _bilin (const MX &A, const MX &x, const MX &y) |
| static MX | _rank1 (const MX &A, const MX &alpha, const MX &x, const MX &y) |
| static MX | project (const MX &x, const Sparsity &sp, bool intersect=false) |
| static MX | cumsum (const MX &x, casadi_int axis=-1) |
| static MX | _logsumexp (const MX &x) |
| static std::vector< MX > | cse (const std::vector< MX > &e) |
| static void | extract_parametric (const MX &expr, const MX &par, MX &expr_ret, std::vector< MX > &symbols, std::vector< MX > ¶metric, const Dict &opts) |
| static void | separate_linear (const MX &expr, const MX &sym_lin, const MX &sym_const, MX &expr_const, MX &expr_lin, MX &expr_nonlin) |
| static MX | find (const MX &x) |
| static MX | low (const MX &v, const MX &p, const Dict &options=Dict()) |
| static MX | graph_substitute (const MX &x, const std::vector< MX > &v, const std::vector< MX > &vdef) |
| static MX | graph_substitute (const MX &x, const std::vector< MX > &v, const std::vector< MX > &vdef, bool &updated) |
| static std::vector< MX > | graph_substitute (const std::vector< MX > &ex, const std::vector< MX > &v, const std::vector< MX > &vdef) |
| static std::vector< MX > | graph_substitute (const std::vector< MX > &ex, const std::vector< MX > &v, const std::vector< MX > &vdef, bool &updated) |
| static MX | matrix_expand (const MX &e, const std::vector< MX > &boundary, const Dict &options) |
| static std::vector< MX > | matrix_expand (const std::vector< MX > &e, const std::vector< MX > &boundary, const Dict &options) |
| static MX | lift (const MX &x, const MX &x_guess) |
| static DM | evalf (const MX &m) |
| static MX | bspline (const MX &x, const DM &coeffs, const std::vector< std::vector< double > > &knots, const std::vector< casadi_int > °ree, casadi_int m, const Dict &opts=Dict()) |
| static MX | bspline (const MX &x, const MX &coeffs, const std::vector< std::vector< double > > &knots, const std::vector< casadi_int > °ree, casadi_int m, const Dict &opts=Dict()) |
| static MX | bspline (const MX &x, const MX &coeffs, const std::vector< MX > &knots, const std::vector< casadi_int > °ree, casadi_int m, const Dict &opts=Dict()) |
| static MX | convexify (const MX &H, const Dict &opts=Dict()) |
| static MX | stop_diff (const MX &expr, casadi_int order) |
| static MX | stop_diff (const MX &expr, const MX &var, casadi_int order) |
| static std::vector< MX > | difference (const std::vector< MX > &a, const std::vector< MX > &b) |
| static MX | interp1d (const std::vector< double > &x, const MX &v, const std::vector< double > &xq, const std::string &mode, bool equidistant) |
| Functions called by friend functions defined here. More... | |
| static casadi_int | sprank (const MX &x) |
| Functions called by friend functions defined here. More... | |
| static casadi_int | norm_0_mul (const MX &x, const MX &y) |
| Functions called by friend functions defined here. More... | |
| static MX | tril (const MX &x, bool includeDiagonal=true) |
| Functions called by friend functions defined here. More... | |
| static MX | triu (const MX &x, bool includeDiagonal=true) |
| Functions called by friend functions defined here. More... | |
| static MX | sumsqr (const MX &x) |
| Functions called by friend functions defined here. More... | |
| static MX | linspace (const MX &a, const MX &b, casadi_int nsteps) |
| Functions called by friend functions defined here. More... | |
| static MX | cross (const MX &a, const MX &b, casadi_int dim=-1) |
| Functions called by friend functions defined here. More... | |
| static MX | skew (const MX &a) |
| Functions called by friend functions defined here. More... | |
| static MX | inv_skew (const MX &a) |
| Functions called by friend functions defined here. More... | |
| static MX | tril2symm (const MX &x) |
| Functions called by friend functions defined here. More... | |
| static MX | triu2symm (const MX &x) |
| Functions called by friend functions defined here. More... | |
| static MX | repsum (const MX &x, casadi_int n, casadi_int m=1) |
| Functions called by friend functions defined here. More... | |
| static MX | diff (const MX &x, casadi_int n=1, casadi_int axis=-1) |
| Functions called by friend functions defined here. More... | |
| static bool | is_linear (const MX &expr, const MX &var) |
| Functions called by friend functions defined here. More... | |
| static bool | is_quadratic (const MX &expr, const MX &var) |
| Functions called by friend functions defined here. More... | |
| static void | quadratic_coeff (const MX &expr, const MX &var, MX &A, MX &b, MX &c, bool check) |
| Functions called by friend functions defined here. More... | |
| static void | linear_coeff (const MX &expr, const MX &var, MX &A, MX &b, bool check) |
| Functions called by friend functions defined here. More... | |
| static MX | mpower (const MX &x, const MX &y) |
| static MX | soc (const MX &x, const MX &y) |
| static MX | linearize (const MX &f, const MX &x, const MX &x0, const Dict &opts=Dict()) |
| static MX | gradient (const MX &ex, const MX &arg, const Dict &opts=Dict()) |
| static MX | tangent (const MX &ex, const MX &arg, const Dict &opts=Dict()) |
| static MX | jtimes (const MX &ex, const MX &arg, const MX &v, bool tr=false, const Dict &opts=Dict()) |
| static MX | bilin (const MX &A, const MX &x, const MX &y) |
| Calculate bilinear/quadratic form x^T A y. More... | |
| static MX | rank1 (const MX &A, const MX &alpha, const MX &x, const MX &y) |
| Make a rank-1 update to a matrix A. More... | |
Construct symbolic primitives | |
The "sym" function is intended to work in a similar way as "sym" used in the Symbolic Toolbox for Matlab but instead creating a CasADi symbolic primitive. | |
| static MX | sym (const std::string &name, casadi_int nrow=1, casadi_int ncol=1) |
| Create an nrow-by-ncol symbolic primitive. More... | |
| static MX | sym (const std::string &name, const std::pair< casadi_int, casadi_int > &rc) |
| Construct a symbolic primitive with given dimensions. More... | |
| static MX | sym (const std::string &name, const Sparsity &sp) |
| Create symbolic primitive with a given sparsity pattern. More... | |
| static std::vector< MX > | sym (const std::string &name, const Sparsity &sp, casadi_int p) |
| Create a vector of length p with with matrices. More... | |
| static std::vector< MX > | sym (const std::string &name, casadi_int nrow, casadi_int ncol, casadi_int p) |
| Create a vector of length p with nrow-by-ncol symbolic primitives. More... | |
| static std::vector< std::vector< MX > > | sym (const std::string &name, const Sparsity &sp, casadi_int p, casadi_int r) |
| Create a vector of length r of vectors of length p with. More... | |
| static std::vector< std::vector< MX > > | sym (const std::string &name, casadi_int nrow, casadi_int ncol, casadi_int p, casadi_int r) |
| Create a vector of length r of vectors of length p. More... | |
| static MX | zeros (casadi_int nrow=1, casadi_int ncol=1) |
| Create a dense matrix or a matrix with specified sparsity with all entries zero. More... | |
| static MX | zeros (const Sparsity &sp) |
| Create a dense matrix or a matrix with specified sparsity with all entries zero. More... | |
| static MX | zeros (const std::pair< casadi_int, casadi_int > &rc) |
| Create a dense matrix or a matrix with specified sparsity with all entries zero. More... | |
| static MX | ones (casadi_int nrow=1, casadi_int ncol=1) |
| Create a dense matrix or a matrix with specified sparsity with all entries one. More... | |
| static MX | ones (const Sparsity &sp) |
| Create a dense matrix or a matrix with specified sparsity with all entries one. More... | |
| static MX | ones (const std::pair< casadi_int, casadi_int > &rc) |
| Create a dense matrix or a matrix with specified sparsity with all entries one. More... | |
Protected Member Functions | |
| void | count_up () |
| void | count_down () |
Static Private Member Functions | |
| static MX | printme (const MX &x, const MX &y) |
Friends | |
| MX | find (const MX &x) |
| Find first nonzero, returned as row index. More... | |
| MX | low (const MX &v, const MX &p, const Dict &options=Dict()) |
| Find first nonzero. More... | |
| MX | graph_substitute (const MX &ex, const std::vector< MX > &v, const std::vector< MX > &vdef) |
| Substitute single expression in graph. More... | |
| MX | graph_substitute (const MX &ex, const std::vector< MX > &v, const std::vector< MX > &vdef, bool &updated) |
| std::vector< MX > | graph_substitute (const std::vector< MX > &ex, const std::vector< MX > &v, const std::vector< MX > &vdef) |
| Substitute multiple expressions in graph. More... | |
| std::vector< MX > | graph_substitute (const std::vector< MX > &ex, const std::vector< MX > &v, const std::vector< MX > &vdef, bool &updated) |
| MX | matrix_expand (const MX &e, const std::vector< MX > &boundary=std::vector< MX >(), const Dict &options=Dict()) |
| Expand MX graph to SXFunction call. More... | |
| std::vector< MX > | matrix_expand (const std::vector< MX > &e, const std::vector< MX > &boundary=std::vector< MX >(), const Dict &options=Dict()) |
| Expand MX graph to SXFunction call. More... | |
| MX | bspline (const MX &x, const DM &coeffs, const std::vector< std::vector< double > > &knots, const std::vector< casadi_int > °ree, casadi_int m, const Dict &opts=Dict()) |
| MX | bspline (const MX &x, const MX &coeffs, const std::vector< std::vector< double > > &knots, const std::vector< casadi_int > °ree, casadi_int m, const Dict &opts=Dict()) |
| MX | bspline (const MX &x, const MX &coeffs, const std::vector< MX > &knots, const std::vector< casadi_int > °ree, casadi_int m, const Dict &opts=Dict()) |
| DM | bspline_dual (const std::vector< double > &x, const std::vector< std::vector< double > > &knots, const std::vector< casadi_int > °ree, const Dict &opts=Dict()) |
| MX | convexify (const MX &H, const Dict &opts=Dict()) |
| MX | lift (const MX &x, const MX &x_guess) |
| Lift the expression. More... | |
| MX | inv_node (const MX &x) |
| Inverse node. More... | |
| DM | evalf (const MX &expr) |
| Evaluates the expression numerically. More... | |
| MX | stop_diff (const MX &expr, casadi_int order) |
| Stop derivatives of an expression wrt to all its symbolic variables. More... | |
| MX | no_grad (const MX &expr) |
| Stop first derivatives of an expression wrt to all its symbolic variables. More... | |
| MX | no_hess (const MX &expr) |
| Stop second derivatives of an expression wrt to all its symbolic variables. More... | |
| MX | stop_diff (const MX &expr, const MX &var, casadi_int order) |
| Stop derivatives of an expression wrt to a select set of symbolic variables. More... | |
| std::vector< MX > | difference (const std::vector< MX > &a, const std::vector< MX > &b) |
| typedef GenericMatrix<MX> casadi::MX::B |
|
inherited |
Definition at line 103 of file shared_object.hpp.
|
inherited |
Definition at line 102 of file shared_object.hpp.
| typedef std::map<std::string, MX> casadi::MX::MXDict |
| typedef MX casadi::MX::ScalarType |
| casadi::MX::MX | ( | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_q0
Definition at line 61 of file mx.cpp.
References casadi::ZeroByZero::getInstance(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
Referenced by binary(), blockcat(), create(), createMultipleOutput(), cse(), diagcat(), extract(), extract_parametric(), eye(), graph_substitute(), horzcat(), repmat(), separate_linear(), set(), set_nz(), simplify_const_folding(), simplify_ref_count(), solve(), and vertcat().
| casadi::MX::MX | ( | casadi_int | nrow, |
| casadi_int | ncol | ||
| ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_q1
Definition at line 110 of file mx.cpp.
References casadi::ConstantMX::create(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
|
explicit |
Extra doc: https://github.com/casadi/casadi/wiki/L_q2
Definition at line 114 of file mx.cpp.
References casadi::ConstantMX::create(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
|
explicit |
Same as MX::ones(sparsity)
Extra doc: https://github.com/casadi/casadi/wiki/L_q3
Definition at line 106 of file mx.cpp.
References casadi::ConstantMX::create(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
Extra doc: https://github.com/casadi/casadi/wiki/L_q4
Definition at line 85 of file mx.cpp.
References casadi::ConstantMX::create(), densify(), casadi::MXNode::get_nzref(), casadi::GenericMatrix< MatType >::is_column(), is_constant(), casadi::GenericMatrix< MatType >::is_dense(), casadi::Sparsity::is_reshape(), casadi::GenericMatrix< MatType >::is_scalar(), casadi::Sparsity::nnz(), casadi::GenericShared< SharedObject, SharedObjectInternal >::own(), casadi::range(), reshape(), casadi::Sparsity::size(), casadi::GenericMatrix< MatType >::size1(), and sparsity().
| casadi::MX::MX | ( | const Sparsity & | sp, |
| const std::string & | fname | ||
| ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_q5
Definition at line 122 of file mx.cpp.
References casadi::ConstantMX::create(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
| casadi::MX::MX | ( | const Matrix< double > & | val, |
| const std::string & | name | ||
| ) |
configurable in codegen via a pool
Extra doc: https://github.com/casadi/casadi/wiki/L_2aa
Definition at line 126 of file mx.cpp.
References casadi::ConstantMX::create(), name(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
| casadi::MX::MX | ( | double | x | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_q6
Definition at line 73 of file mx.cpp.
References casadi::ConstantMX::create(), casadi::Sparsity::dense(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
| casadi::MX::MX | ( | const std::vector< double > & | x | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_q7
Definition at line 81 of file mx.cpp.
References casadi::ConstantMX::create(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
| casadi::MX::MX | ( | const Matrix< double > & | x | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_q8
Definition at line 77 of file mx.cpp.
References casadi::ConstantMX::create(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
| casadi::MX::~MX | ( | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_q9
| casadi::MX::MX | ( | const Sparsity & | sp, |
| double | val, | ||
| bool | dummy | ||
| ) |
Definition at line 118 of file mx.cpp.
References casadi::ConstantMX::create(), and casadi::GenericShared< SharedObject, SharedObjectInternal >::own().
|
inherited |
If the Object does not point to any node, "0" is returned.
Extra doc: https://github.com/casadi/casadi/wiki/L_av
Definition at line 123 of file generic_shared_impl.hpp.
| bool casadi::MX::__nonzero__ | ( | ) | const |
Functions called by friend functions defined for GenericMatrix
Definition at line 3209 of file mx.cpp.
References casadi::MXNode::get_bilin().
Functions called by friend functions defined for GenericMatrix
Definition at line 3217 of file mx.cpp.
References casadi::MXNode::get_logsumexp().
Functions called by friend functions defined for GenericMatrix
Definition at line 3213 of file mx.cpp.
References casadi::MXNode::get_rank1().
Definition at line 946 of file mx.cpp.
References create(), name(), casadi::Sparsity::nnz(), and casadi::GenericMatrix< MX >::zeros().
| void casadi::MX::ad_forward | ( | const std::vector< std::vector< MX > > & | fseed, |
| std::vector< std::vector< MX > > & | fsens | ||
| ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_ro
| void casadi::MX::ad_reverse | ( | const std::vector< std::vector< MX > > & | aseed, |
| std::vector< std::vector< MX > > & | asens | ||
| ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_ro
|
inherited |
improper use will cause memory leaks!
Extra doc: https://github.com/casadi/casadi/wiki/L_at
Definition at line 96 of file generic_shared_impl.hpp.
If y does not evaluate to 1, a runtime error is raised
Extra doc: https://github.com/casadi/casadi/wiki/L_rg
Definition at line 743 of file mx.cpp.
References casadi::GenericMatrix< MatType >::dim(), and casadi::GenericMatrix< MatType >::is_scalar().
|
staticinherited |
| [in] | y | can be omitted, in which case x^T A x is calculated |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bo
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_r1
Definition at line 533 of file mx.cpp.
References casadi::GenericMatrix< MatType >::dim(), casadi::MXNode::get_binary(), casadi::GenericMatrix< MatType >::is_empty(), casadi::GenericMatrix< MatType >::is_scalar(), MX(), op(), repmat(), casadi::GenericMatrix< MatType >::size(), casadi::GenericMatrix< MatType >::size1(), and casadi::GenericMatrix< MatType >::size2().
Referenced by casadi::BinaryMX< ScX, ScY >::eval_mx(), and printme().
Functions called by friend functions defined for SparsityInterface
Definition at line 1263 of file mx.cpp.
References horzcat(), MX(), casadi::GenericMatrix< MX >::rows(), and vertcat().
Referenced by casadi::Expm::get_forward(), casadi::Nlpsol::get_forward(), casadi::Expm::get_reverse(), and casadi::Nlpsol::get_reverse().
|
static |
Functions called by friend functions defined for this class
Definition at line 2224 of file mx.cpp.
References casadi::BSpline::create(), and casadi::Matrix< Scalar >::nonzeros().
Referenced by casadi::Function::bspline(), casadi::BSplineInterpolant::construct_graph(), and casadi::BSplineCommon::jac().
|
static |
Functions called by friend functions defined for this class
Definition at line 2241 of file mx.cpp.
References casadi::BSplineParametric::create().
|
static |
Functions called by friend functions defined for this class
Definition at line 2233 of file mx.cpp.
References casadi::BSplineParametric::create().
|
static |
Definition at line 2249 of file mx.cpp.
References casadi::BSpline::dual().
Referenced by casadi::BSplineInterpolant::construct_graph().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_au
Definition at line 31 of file shared_object.cpp.
Referenced by casadi::FmuFunction::check_mem_count(), casadi::MXFunction::export_code_body(), and casadi::BlazingSplineFunction::merge().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b8
Definition at line 198 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b8
Definition at line 201 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1av
Definition at line 124 of file generic_matrix.hpp.
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1395 of file mx.cpp.
References casadi::Function::conditional(), if_else(), symvar(), and casadi::SparsityInterface< MatType >::veccat().
Functions called by friend functions defined for GenericMatrix
Functions called by friend functions defined for GenericMatrix
Definition at line 2198 of file mx.cpp.
Functions called by friend functions defined for this class
Definition at line 2256 of file mx.cpp.
References casadi::MXNode::get_convexify().
|
protectedinherited |
Definition at line 133 of file generic_shared_impl.hpp.
|
protectedinherited |
Definition at line 132 of file generic_shared_impl.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_qa
Definition at line 69 of file mx.cpp.
References MX().
Referenced by casadi::MXNode::_get_binary(), _sym(), casadi::Kron::create(), casadi::KronContract::create(), casadi::GetNonzerosParam::create(), casadi::SetNonzerosParam< Add >::create(), casadi::SetNonzeros< Add >::create(), casadi::Multiplication::create(), casadi::GetNonzeros::create(), casadi::Call::create_call(), createMultipleOutput(), deserialize(), casadi::MXNode::get_assert(), casadi::MXNode::get_bilin(), casadi::MXNode::get_bspline(), casadi::MXNode::get_convexify(), casadi::MXNode::get_det(), casadi::MXNode::get_diagcat(), casadi::MXNode::get_dot(), casadi::MXNode::get_dump(), casadi::MXNode::get_einstein(), casadi::MXNode::get_find(), casadi::MXNode::get_horzcat(), casadi::MXNode::get_inv(), casadi::MXNode::get_logsumexp(), casadi::MXNode::get_low(), casadi::MXNode::get_mmax(), casadi::MXNode::get_mmin(), casadi::MXNode::get_monitor(), casadi::MXNode::get_norm_1(), casadi::MXNode::get_norm_2(), casadi::MXNode::get_norm_fro(), casadi::MXNode::get_norm_inf(), casadi::Constant< Value >::get_nzref(), casadi::Call::get_output(), casadi::MultipleOutput::get_output(), casadi::MXNode::get_project(), casadi::Constant< Value >::get_project(), casadi::MXNode::get_rank1(), casadi::MXNode::get_repmat(), casadi::MXNode::get_repsum(), casadi::MXNode::get_reshape(), casadi::Constant< Value >::get_reshape(), casadi::MXNode::get_solve(), casadi::MXNode::get_solve_tril(), casadi::MXNode::get_solve_tril_unity(), casadi::MXNode::get_solve_triu(), casadi::MXNode::get_solve_triu_unity(), casadi::MXNode::get_sparsity_cast(), casadi::MXNode::get_subassign(), casadi::MXNode::get_subref(), casadi::MXNode::get_transpose(), casadi::Constant< Value >::get_transpose(), casadi::MXNode::get_unary(), casadi::MXNode::get_vertcat(), inf(), casadi::MXFunction::init(), and nan().
Extra doc: https://github.com/casadi/casadi/wiki/L_qb
Definition at line 130 of file mx.cpp.
References create(), get_output(), casadi::GenericMatrix< MX >::is_empty(), MX(), casadi::GenericMatrix< MX >::nnz(), casadi::MXNode::nout(), and casadi::GenericMatrix< MX >::size().
Referenced by casadi::Call::create(), casadi::MXNode::get_diagsplit(), casadi::MXNode::get_horzsplit(), and casadi::MXNode::get_vertsplit().
|
staticinherited |
Definition at line 227 of file generic_matrix.hpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 2642 of file mx.cpp.
References casadi::SimpleCache< K, T >::cache_map(), casadi::Call::create_call(), dep(), casadi::MXNode::dep_, casadi::Function::get(), get_output(), graph_substitute(), casadi::SimpleCache< K, T >::incache(), is_output(), join_primitives(), MX(), n_primitives(), op(), casadi::OP_CALL, casadi::OP_INPUT, casadi::OP_OUTPUT, casadi::OP_PARAMETER, casadi::Function::serialize(), casadi::SimpleCache< K, T >::tocache(), which_function(), and which_output().
Functions called by friend functions defined for GenericMatrix
Definition at line 698 of file mx.cpp.
References casadi::GenericMatrix< MatType >::is_row(), casadi::Function::mapaccum(), casadi::GenericMatrix< MatType >::size2(), sparsity(), casadi::GenericMatrix< MX >::sym(), and T().
|
inherited |
Definition at line 112 of file generic_shared_impl.hpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 923 of file mx.cpp.
References casadi::Sparsity::dense(), casadi::GenericMatrix< MatType >::is_dense(), casadi::GenericMatrix< MatType >::is_scalar(), casadi::MXNode::is_zero(), project(), repmat(), casadi::GenericMatrix< MatType >::size(), and sparsity().
| MX casadi::MX::dep | ( | casadi_int | ch = 0 | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qj
Definition at line 783 of file mx.cpp.
References casadi::MXNode::dep().
Referenced by casadi::OptiNode::canon_expr(), casadi::Call::common_cond(), casadi::DaeBuilderInternal::create(), cse(), casadi::MXFunction::export_code_body(), casadi::MXNode::get_binary(), casadi::BinaryMX< ScX, ScY >::get_solve_tril(), casadi::BinaryMX< ScX, ScY >::get_solve_triu(), inv(), is_doubled(), casadi::DaeBuilderInternal::jac_vdef_v_from_calls(), casadi::Onnx::load(), casadi::DaeBuilderInternal::load_fmi_description(), and casadi::DaeBuilderInternal::when().
Functions called by friend functions defined for GenericMatrix
Definition at line 2165 of file mx.cpp.
References casadi::get_ptr(), and casadi::GenericMatrix< MatType >::nnz().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_r0
Definition at line 863 of file mx.cpp.
References create(), and casadi::MXNode::deserialize().
Functions called by friend functions defined for GenericMatrix
Definition at line 2020 of file mx.cpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 2024 of file mx.cpp.
References casadi::Linsol::det(), and sparsity().
Functions called by friend functions defined for GenericMatrix
Definition at line 1464 of file mx.cpp.
References casadi::Sparsity::get_diag(), casadi::MXNode::get_nzref(), mapping(), and sparsity().
Functions called by friend functions defined for SparsityInterface
Definition at line 1155 of file mx.cpp.
References casadi::has_empty(), MX(), and casadi::trim_empty().
|
static |
Functions called by friend functions defined for SparsityInterface
Definition at line 1223 of file mx.cpp.
References casadi::MXNode::get_diagsplit(), casadi::is_monotone(), casadi::GenericMatrix< MatType >::size1(), and casadi::GenericMatrix< MatType >::size2().
|
staticinherited |
Definition at line 233 of file generic_matrix.hpp.
|
static |
Functions called by friend functions defined for this class
Definition at line 3099 of file mx.cpp.
Referenced by stop_diff().
|
inherited |
The representation is e.g. "4x5" or "4x5,10nz"
Extra doc: https://github.com/casadi/casadi/wiki/L_1aw
Definition at line 131 of file generic_matrix.hpp.
|
inherited |
Definition at line 35 of file shared_object.cpp.
References casadi::GenericShared< SharedObject, SharedObjectInternal >::is_null().
Referenced by casadi::Nlpsol::disp_more(), and casadi::CsparseInterface::nfact().
Functions called by friend functions defined for GenericMatrix
Definition at line 735 of file mx.cpp.
References casadi::MXNode::get_dot().
Returns itself, but with the side effect of dumping values to file Allowed options: "dir" (dump directory), "format" (file format, default "mtx"), "verbose" (print filename on each dump, default false)
Extra doc: https://github.com/casadi/casadi/wiki/L_2f9
Definition at line 754 of file mx.cpp.
References casadi::MXNode::get_dump().
|
static |
Computes the product: C_c = A_a + B_b where a b c are index/einstein notation in an encoded form
For example, an matrix-matrix product may be written as: C_ij = A_ik B_kj
The encoded form uses strictly negative numbers to indicate labels. For the above example, we would have: a {-1, -3} b {-3, -2} c {-1 -2}
Extra doc: https://github.com/casadi/casadi/wiki/L_r5
Definition at line 682 of file mx.cpp.
References casadi::C.
Referenced by casadi::Einstein::ad_forward(), casadi::Einstein::ad_reverse(), and casadi::derivative_coeff_mx().
|
static |
Computes the product: C_c = A_a + B_b where a b c are index/einstein notation in an encoded form
For example, an matrix-matrix product may be written as: C_ij = A_ik B_kj
The encoded form uses strictly negative numbers to indicate labels. For the above example, we would have: a {-1, -3} b {-3, -2} c {-1 -2}
Extra doc: https://github.com/casadi/casadi/wiki/L_r5
Definition at line 690 of file mx.cpp.
References casadi::MXNode::get_einstein(), casadi::product(), and casadi::GenericMatrix< MX >::zeros().
| void casadi::MX::enlarge | ( | casadi_int | nrow, |
| casadi_int | ncol, | ||
| const std::vector< casadi_int > & | rr, | ||
| const std::vector< casadi_int > & | cc, | ||
| bool | ind1 = false |
||
| ) |
Make the matrix larger by inserting empty rows and columns, keeping the existing non-zeros
Extra doc: https://github.com/casadi/casadi/wiki/L_qg
Definition at line 662 of file mx.cpp.
References casadi::Sparsity::enlarge(), casadi::MXNode::get_nzref(), casadi::GenericMatrix< MX >::nnz(), casadi::range(), and sparsity().
| void casadi::MX::erase | ( | const std::vector< casadi_int > & | rr, |
| bool | ind1 = false |
||
| ) |
Erase elements of a matrix
Extra doc: https://github.com/casadi/casadi/wiki/L_qf
Definition at line 648 of file mx.cpp.
References casadi::Sparsity::erase(), casadi::MXNode::get_nzref(), mapping(), casadi::GenericMatrix< MX >::nnz(), casadi::GenericMatrix< MatType >::size(), and sparsity().
| void casadi::MX::erase | ( | const std::vector< casadi_int > & | rr, |
| const std::vector< casadi_int > & | cc, | ||
| bool | ind1 = false |
||
| ) |
Erase rows and/or columns of a matrix
Extra doc: https://github.com/casadi/casadi/wiki/L_qe
Definition at line 616 of file mx.cpp.
References casadi::Sparsity::erase(), casadi::MXNode::get_nzref(), mapping(), casadi::GenericMatrix< MX >::nnz(), casadi::GenericMatrix< MatType >::size(), and sparsity().
Referenced by set().
| void casadi::MX::eval_mx | ( | const std::vector< MX > & | arg, |
| std::vector< MX > & | res, | ||
| const std::vector< bool > & | unique = std::vector<bool>() |
||
| ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_rn
Functions called by friend functions defined for GenericMatrix
Definition at line 2154 of file mx.cpp.
References casadi::expmsol(), and sparsity().
Functions called by friend functions defined for GenericMatrix
Definition at line 2147 of file mx.cpp.
References casadi::expmsol(), and sparsity().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1740 of file mx.cpp.
References casadi::MXFunction::algorithm_, casadi::Function::get(), MX(), op(), casadi::OP_CALL, casadi::OP_CONST, casadi::OP_OUTPUT, casadi::OP_PARAMETER, casadi::replace(), casadi::sort(), and casadi::GenericMatrix< MX >::sym().
Referenced by shared().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 2810 of file mx.cpp.
References join_primitives(), MX(), n_primitives(), op(), casadi::OP_CONST, casadi::OP_INPUT, casadi::OP_OUTPUT, casadi::OP_PARAMETER, casadi::register_symbol(), and split_primitives().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_r4
Definition at line 600 of file mx.cpp.
References casadi::Matrix< double >::eye(), and MX().
Referenced by casadi::OptiNode::canon_expr(), and inv().
Functions called by friend functions defined for this class
Definition at line 2216 of file mx.cpp.
References casadi::MXNode::get_find().
Referenced by casadi::DaeBuilderInternal::create(), graph_substitute(), casadi::DaeBuilderInternal::hess_v_v_from_calls(), casadi::DaeBuilderInternal::jac_vdef_v_from_calls(), and casadi::register_symbol().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1949 of file mx.cpp.
References casadi::FunctionInternal::call_forward(), casadi::extract_from_dict(), and op().
| MXNode * casadi::MX::get | ( | ) | const |
Definition at line 564 of file mx.cpp.
References casadi::GenericShared< SharedObject, SharedObjectInternal >::get().
Referenced by casadi::MXNode::_get_binary(), casadi::Constant< Value >::_get_binary(), casadi::DaeBuilderInternal::create(), get(), is_equal(), is_norm(), casadi::DaeBuilderInternal::jac_vdef_v_from_calls(), casadi::register_symbol(), reset_dump_count(), casadi::OptiNode::set_meta(), and casadi::OptiNode::set_meta_con().
|
inline |
Get a submatrix, two arguments
Definition at line 547 of file mx.hpp.
Get a submatrix, two arguments
|
inline |
Get a submatrix, single argument
Get a submatrix, single argument
Definition at line 188 of file mx.cpp.
References get_nz(), casadi::MXNode::get_nzref(), casadi::GenericMatrix< MatType >::is_column(), casadi::GenericMatrix< MX >::is_column(), casadi::GenericMatrix< MX >::is_dense(), casadi::GenericMatrix< MX >::is_row(), casadi::GenericMatrix< MatType >::is_row(), mapping(), casadi::Matrix< Scalar >::nonzeros(), casadi::Matrix< Scalar >::sparsity(), sparsity(), casadi::Sparsity::sub(), and casadi::Sparsity::T().
| void casadi::MX::get | ( | MX & | m, |
| bool | ind1, | ||
| const Matrix< casadi_int > & | rr, | ||
| const Matrix< casadi_int > & | cc | ||
| ) | const |
Get a submatrix, two arguments
Definition at line 168 of file mx.cpp.
References casadi::MXNode::get_nzref(), casadi::GenericMatrix< MatType >::is_dense(), casadi::GenericMatrix< MatType >::is_vector(), mapping(), casadi::Matrix< Scalar >::nonzeros(), sparsity(), and casadi::Sparsity::sub().
Get a submatrix, two arguments
Definition at line 163 of file mx.cpp.
References casadi::Slice::all(), get(), and casadi::GenericMatrix< MX >::size2().
Get a submatrix, single argument
Definition at line 215 of file mx.cpp.
References casadi::GenericMatrix< MX >::dim(), get_nz(), and casadi::GenericMatrix< MX >::is_dense().
Get a submatrix, two arguments
Definition at line 231 of file mx.cpp.
References casadi::GenericExpression< MX >::floor(), casadi::MXNode::get_nz_ref(), casadi::GenericMatrix< MX >::is_dense(), and casadi::GenericMatrix< MX >::size1().
Get a submatrix, two arguments
Definition at line 226 of file mx.cpp.
References casadi::Slice::apply(), casadi::MXNode::get_nz_ref(), casadi::GenericMatrix< MX >::is_dense(), casadi::GenericMatrix< MX >::size1(), and casadi::GenericMatrix< MX >::size2().
Get a submatrix, single argument
Definition at line 183 of file mx.cpp.
References casadi::Slice::all(), get(), and casadi::GenericMatrix< MX >::numel().
Get a submatrix, two arguments
Get a submatrix, two arguments
Definition at line 158 of file mx.cpp.
References casadi::Slice::all(), get(), and casadi::GenericMatrix< MX >::size1().
Get a submatrix, two arguments
Definition at line 221 of file mx.cpp.
References casadi::Slice::apply(), casadi::GenericExpression< MX >::floor(), casadi::MXNode::get_nz_ref(), casadi::GenericMatrix< MX >::is_dense(), and casadi::GenericMatrix< MX >::size1().
Get a submatrix, two arguments
Definition at line 153 of file mx.cpp.
References casadi::Slice::all(), get(), casadi::GenericMatrix< MX >::size1(), and casadi::GenericMatrix< MX >::size2().
Get a submatrix, single argument
Definition at line 207 of file mx.cpp.
References project(), casadi::GenericMatrix< MX >::size(), casadi::Sparsity::size(), and casadi::str().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b8
Definition at line 195 of file generic_matrix.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_rm
Definition at line 3205 of file mx.cpp.
References casadi::Function::free_mx().
Extra doc: https://github.com/casadi/casadi/wiki/L_rl
Definition at line 3201 of file mx.cpp.
References casadi::Function::mx_in().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_rk
Definition at line 942 of file mx.cpp.
Referenced by is_doubled(), and casadi::MXNode::maxDepth().
| std::vector< MX > casadi::MX::get_nonzeros | ( | ) | const |
Since MX is not a containter, the scalar MXes may be complex When the expression satisfies is_valid_input, the results may be simple
For example: vertcat(x,y).nonzeros() will return {x,y}
Extra doc: https://github.com/casadi/casadi/wiki/L_2bh
Definition at line 630 of file mx.cpp.
References get_nz(), casadi::GenericMatrix< MatType >::nnz(), casadi::GenericMatrix< MX >::nz(), and primitives().
|
inline |
Get a set of nonzeros
Get a set of nonzeros
Definition at line 410 of file mx.cpp.
References get_nz(), casadi::MXNode::get_nzref(), casadi::GenericMatrix< MatType >::is_column(), casadi::GenericMatrix< MX >::is_column(), casadi::GenericMatrix< MX >::is_row(), casadi::GenericMatrix< MatType >::is_row(), casadi::GenericMatrix< MX >::nnz(), casadi::GenericMatrix< MatType >::nnz(), casadi::Matrix< Scalar >::nonzeros(), casadi::Matrix< Scalar >::sparsity(), casadi::str(), casadi::Sparsity::T(), and casadi::GenericMatrix< MX >::zeros().
Get a set of nonzeros
Definition at line 448 of file mx.cpp.
References casadi::MXNode::get_nz_ref().
Get a set of nonzeros
Definition at line 458 of file mx.cpp.
References casadi::MXNode::get_nz_ref().
Get a set of nonzeros
Definition at line 443 of file mx.cpp.
References casadi::MXNode::get_nz_ref().
Get a set of nonzeros
Definition at line 453 of file mx.cpp.
References casadi::MXNode::get_nz_ref().
Get a set of nonzeros
Definition at line 405 of file mx.cpp.
References casadi::Slice::all(), and casadi::GenericMatrix< MX >::nnz().
Referenced by get(), casadi::get_boor(), get_nonzeros(), get_nz(), casadi::interpn_G(), and interpn_linear().
| MX casadi::MX::get_output | ( | casadi_int | oind | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_ql
Definition at line 902 of file mx.cpp.
References casadi::MXNode::get_output().
Referenced by createMultipleOutput(), cse(), and graph_substitute().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b8
Definition at line 194 of file generic_matrix.hpp.
|
inline |
|
inlineinherited |
Definition at line 91 of file shared_object.hpp.
| casadi_int casadi::MX::get_temp | ( | ) | const |
|
inherited |
Definition at line 102 of file generic_shared_impl.hpp.
|
staticinherited |
Functions called by friend functions defined here
|
static |
Functions called by friend functions defined for this class
Definition at line 1551 of file mx.cpp.
Referenced by cse(), graph_substitute(), and matrix_expand().
|
static |
Functions called by friend functions defined for this class
Definition at line 1556 of file mx.cpp.
References graph_substitute().
|
static |
Functions called by friend functions defined for this class
Definition at line 1561 of file mx.cpp.
References graph_substitute().
|
static |
Functions called by friend functions defined for this class
Definition at line 1567 of file mx.cpp.
References casadi::MXFunction::algorithm_, casadi::any(), casadi::GenericMatrix< MX >::dim(), find(), get_output(), casadi::MXNode::get_output(), casadi::MXNode::has_output(), is_equal(), MX(), n_primitives(), casadi::OP_INPUT, casadi::OP_OUTPUT, casadi::OP_PARAMETER, casadi::GenericMatrix< MX >::size(), and casadi::str().
| bool casadi::MX::has_duplicates | ( | ) | const |
If there are symbolic primitives appearing more than once, the function will return true and the names of the duplicate expressions will be passed to casadi_warning. Note: Will mark the node using MX::set_temp. Make sure to call reset_input() after usage.
Extra doc: https://github.com/casadi/casadi/wiki/L_qs
| bool casadi::MX::has_output | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_284
Functions called by friend functions defined for GenericMatrix
Definition at line 1932 of file mx.cpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 1937 of file mx.cpp.
References casadi::GenericMatrix< MX >::gradient, and jacobian().
Functions called by friend functions defined for SparsityInterface
Definition at line 1119 of file mx.cpp.
References casadi::GenericMatrix< MX >::dim(), casadi::has_empty(), MX(), casadi::GenericExpression< MX >::ne(), casadi::GenericMatrix< MatType >::size(), casadi::GenericMatrix< MX >::size1(), casadi::str(), casadi::trim_empty(), and casadi::GenericMatrix< MX >::zeros().
Referenced by blockcat(), and vertcat().
|
static |
Functions called by friend functions defined for SparsityInterface
Definition at line 1206 of file mx.cpp.
References casadi::MXNode::get_horzsplit(), casadi::is_monotone(), casadi::SparsityInterface< MatType >::offset(), and casadi::GenericMatrix< MatType >::size2().
Referenced by vertsplit().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1373 of file mx.cpp.
References casadi::Function::if_else(), casadi::GenericExpression< MX >::if_else_zero(), symvar(), and casadi::SparsityInterface< MatType >::veccat().
Referenced by conditional().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_r2
Definition at line 576 of file mx.cpp.
References casadi::Sparsity::dense(), and inf().
Extra doc: https://github.com/casadi/casadi/wiki/L_r2
Definition at line 584 of file mx.cpp.
References casadi::ConstantMX::create(), and create().
Referenced by inf(), and casadi::init_gen().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_r2
Definition at line 580 of file mx.cpp.
References inf().
| Dict casadi::MX::info | ( | ) | const |
Obtain information about node
Definition at line 855 of file mx.cpp.
Referenced by casadi::MXFunction::export_code_body(), and casadi::Onnx::load().
|
staticinherited |
Definition at line 213 of file generic_matrix.hpp.
|
static |
Usually, you want to be using 'interpolant' instead.
Accepts lookup_mode option.
Extra doc: https://github.com/casadi/casadi/wiki/L_r6
Definition at line 3145 of file mx.cpp.
References get_nz(), casadi::interpn_G(), casadi::GenericMatrix< MatType >::is_vector(), low(), n_out(), casadi::GenericMatrix< MatType >::numel(), op(), casadi::product(), casadi::GenericMatrix< MatType >::size(), and casadi::str().
Referenced by casadi::LinearInterpolant::do_inline().
| MX casadi::MX::inv | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_2dz
Definition at line 1087 of file mx.cpp.
References dep(), is_op(), and casadi::OP_INV.
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 2037 of file mx.cpp.
References eye(), casadi::GenericMatrix< MatType >::size1(), and solve().
Functions called by friend functions defined for GenericMatrix
Functions called by friend functions defined for GenericMatrix
Definition at line 2029 of file mx.cpp.
References casadi::MXNode::get_inv().
|
staticinherited |
Definition at line 229 of file generic_matrix.hpp.
| bool casadi::MX::is_binary | ( | ) | const |
Definition at line 843 of file mx.cpp.
Referenced by casadi::MXFunction::export_code_body(), and is_commutative().
| bool casadi::MX::is_call | ( | ) | const |
Definition at line 803 of file mx.cpp.
References casadi::OP_CALL.
Referenced by casadi::BlazingSplineFunction::merge().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b5
Definition at line 178 of file generic_matrix.hpp.
| bool casadi::MX::is_commutative | ( | ) | const |
| bool casadi::MX::is_constant | ( | ) | const |
Definition at line 799 of file mx.cpp.
References casadi::OP_CONST.
Referenced by casadi::MXNode::_get_binary(), casadi::constant_ints(), casadi::DaeBuilderInternal::create(), casadi::ConstantMX::get_dot(), casadi::MXNode::get_einstein(), casadi::Constant< Value >::get_nzassign(), is_regular(), casadi::DaeBuilderInternal::load_fmi_description(), MX(), casadi::OptiNode::subject_to(), and casadi::MXNode::~MXNode().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b0
Definition at line 153 of file generic_matrix.hpp.
| bool casadi::MX::is_doubled | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_2e0
Definition at line 1082 of file mx.cpp.
References dep(), get_max_depth(), is_equal(), op(), casadi::OP_ADD, and casadi::OP_TWICE.
|
inlineinherited |
(or optionally both dimensions)
Extra doc: https://github.com/casadi/casadi/wiki/L_1az
Definition at line 148 of file generic_matrix.hpp.
Functions called by friend functions defined for GenericExpression
Definition at line 867 of file mx.cpp.
References get(), and casadi::MXNode::is_equal().
Referenced by casadi::BinaryMX< ScX, ScY >::_get_binary(), casadi::UnaryMX::_get_binary(), casadi::Call::common_cond(), casadi::MXNode::get_binary(), graph_substitute(), is_doubled(), casadi::BinaryMX< ScX, ScY >::is_equal(), casadi::MXNode::sameOpAndDeps(), and substitute().
| bool casadi::MX::is_eye | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qu
Definition at line 1026 of file mx.cpp.
Referenced by mac().
| bool casadi::MX::is_half | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_2ep
| bool casadi::MX::is_inf | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_2e1
| bool casadi::MX::is_integer | ( | ) | const |
|
staticinherited |
Definition at line 235 of file generic_matrix.hpp.
| bool casadi::MX::is_minus_inf | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_2e2
| bool casadi::MX::is_minus_one | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qx
| bool casadi::MX::is_multiplication | ( | ) | const |
| bool casadi::MX::is_nonnegative | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_2e3
| bool casadi::MX::is_norm | ( | ) | const |
|
inherited |
Definition at line 116 of file generic_shared_impl.hpp.
| bool casadi::MX::is_one | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qw
| bool casadi::MX::is_op | ( | casadi_int | op | ) | const |
Definition at line 823 of file mx.cpp.
References op().
Referenced by casadi::OptiNode::canon_expr(), inv(), and casadi::DaeBuilderInternal::when().
| bool casadi::MX::is_output | ( | ) | const |
Definition at line 811 of file mx.cpp.
Referenced by casadi::DaeBuilderInternal::create(), cse(), and casadi::DaeBuilderInternal::jac_vdef_v_from_calls().
|
staticinherited |
Definition at line 236 of file generic_matrix.hpp.
| bool casadi::MX::is_regular | ( | ) | const |
Definition at line 1062 of file mx.cpp.
References is_constant(), and casadi::Matrix< Scalar >::is_regular().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b4
Definition at line 173 of file generic_matrix.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b1
Definition at line 158 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b2
Definition at line 163 of file generic_matrix.hpp.
| bool casadi::MX::is_symbolic | ( | ) | const |
Definition at line 795 of file mx.cpp.
References casadi::OP_PARAMETER.
Referenced by casadi::DaeBuilder::add(), casadi::DaeBuilderInternal::der(), casadi::OptiNode::describe(), casadi::DaeBuilderInternal::find(), casadi::DaeBuilderInternal::load_fmi_description(), casadi::register_symbol(), and substitute_inplace().
| bool casadi::MX::is_transpose | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qy
Definition at line 1058 of file mx.cpp.
References op(), and casadi::OP_TRANSPOSE.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b7
Definition at line 188 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b6
Definition at line 183 of file generic_matrix.hpp.
| bool casadi::MX::is_unary | ( | ) | const |
Definition at line 847 of file mx.cpp.
Referenced by casadi::MXFunction::export_code_body(), and is_commutative().
| bool casadi::MX::is_valid_input | ( | ) | const |
Valid inputs for MXFunctions are combinations of Reshape, concatenations and SymbolicMX
Extra doc: https://github.com/casadi/casadi/wiki/L_qn
Definition at line 954 of file mx.cpp.
Referenced by casadi::DaeBuilderInternal::der(), casadi::OptiNode::set_domain(), and casadi::OptiNode::to_function().
| bool casadi::MX::is_value | ( | double | val | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_2eq
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b3
Definition at line 168 of file generic_matrix.hpp.
| bool casadi::MX::is_zero | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qv
Definition at line 1030 of file mx.cpp.
References casadi::GenericMatrix< MX >::nnz().
Referenced by casadi::MXNode::_get_binary(), casadi::MXNode::get_dot(), casadi::MXNode::get_einstein(), casadi::MXNode::get_mac(), and mac().
Functions called by friend functions defined for GenericMatrix
Definition at line 1920 of file mx.cpp.
References casadi::extract_from_dict(), and casadi::Function::get().
Referenced by hessian(), and casadi::Scpgen::init().
Functions called by friend functions defined for GenericMatrix
Definition at line 2016 of file mx.cpp.
References casadi::_jacobian_sparsity().
Extra doc: https://github.com/casadi/casadi/wiki/L_qr
Definition at line 1010 of file mx.cpp.
References n_primitives().
Extra doc: https://github.com/casadi/casadi/wiki/L_qr
Definition at line 994 of file mx.cpp.
References casadi::MXNode::join_primitives(), and n_primitives().
Referenced by cse(), casadi::DaeBuilderInternal::der(), extract_parametric(), separate_linear(), simplify_const_folding(), and simplify_ref_count().
Extra doc: https://github.com/casadi/casadi/wiki/L_qr
Definition at line 1002 of file mx.cpp.
References n_primitives().
|
staticinherited |
Functions called by friend functions defined here
Functions called by friend functions defined for SparsityInterface
Definition at line 2077 of file mx.cpp.
References casadi::MXNode::get_kron().
Functions called by friend functions defined for SparsityInterface
Definition at line 2081 of file mx.cpp.
References casadi::MXNode::get_kron_contract().
Referenced by casadi::kron_contract().
Functions called by friend functions defined for this class
Definition at line 763 of file mx.cpp.
References casadi::MXNode::_get_binary(), casadi::OP_LIFT, and sparsity().
|
staticinherited |
Definition at line 239 of file generic_matrix.hpp.
|
staticinherited |
Functions called by friend functions defined here
|
staticinherited |
Definition at line 226 of file generic_matrix.hpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 2103 of file mx.cpp.
References vertcat().
|
staticinherited |
Functions called by friend functions defined for this class
Definition at line 2220 of file mx.cpp.
References casadi::MXNode::get_low().
Referenced by interpn_linear().
|
static |
Functions called by friend functions defined for SparsityInterface
Definition at line 712 of file mx.cpp.
References casadi::GenericMatrix< MatType >::dim(), casadi::MXNode::get_mac(), is_eye(), casadi::GenericMatrix< MatType >::is_scalar(), is_zero(), casadi::GenericMatrix< MatType >::size1(), and casadi::GenericMatrix< MatType >::size2().
Referenced by mtimes().
| Matrix< casadi_int > casadi::MX::mapping | ( | ) | const |
|
static |
Functions called by friend functions defined for this class
Definition at line 2046 of file mx.cpp.
|
static |
Functions called by friend functions defined for this class
Definition at line 2050 of file mx.cpp.
References casadi::Function::call(), casadi::Function::expand(), graph_substitute(), sparsity(), casadi::GenericMatrix< MX >::sym(), symvar(), and casadi::SparsityInterface< MatType >::veccat().
Functions called by friend functions defined for GenericMatrix
Definition at line 778 of file mx.cpp.
References casadi::GenericMatrix< MatType >::is_scalar(), and solve().
Functions called by friend functions defined for GenericExpression
Definition at line 875 of file mx.cpp.
References casadi::MXNode::get_mmax().
Functions called by friend functions defined for GenericExpression
Definition at line 871 of file mx.cpp.
References casadi::MXNode::get_mmin().
| MX casadi::MX::monitor | ( | const std::string & | comment | ) | const |
Returns itself, but with the side effect of printing the nonzeros along with a comment
Extra doc: https://github.com/casadi/casadi/wiki/L_rh
Definition at line 750 of file mx.cpp.
References casadi::MXNode::get_monitor().
|
staticinherited |
Functions called by friend functions defined here
Functions called by friend functions defined for GenericMatrix
Definition at line 773 of file mx.cpp.
References casadi::GenericMatrix< MatType >::is_scalar(), solve(), and T().
Functions called by friend functions defined for SparsityInterface
Definition at line 672 of file mx.cpp.
References casadi::GenericMatrix< MatType >::is_scalar(), mac(), casadi::Sparsity::mtimes(), sparsity(), and casadi::GenericMatrix< MX >::zeros().
| casadi_int casadi::MX::n_dep | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qm
Definition at line 787 of file mx.cpp.
Referenced by casadi::DaeBuilderInternal::create(), and casadi::DaeBuilderInternal::load_fmi_description().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1475 of file mx.cpp.
References casadi::Function::n_nodes().
| casadi_int casadi::MX::n_out | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qk
Definition at line 898 of file mx.cpp.
Referenced by casadi::DaeBuilderInternal::create(), and interpn_linear().
| casadi_int casadi::MX::n_primitives | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qo
Definition at line 958 of file mx.cpp.
Referenced by cse(), extract_parametric(), graph_substitute(), join_primitives(), primitives(), separate_linear(), simplify_const_folding(), simplify_ref_count(), and split_primitives().
| std::string casadi::MX::name | ( | ) | const |
Definition at line 791 of file mx.cpp.
Referenced by _sym(), casadi::DaeBuilder::add(), casadi::OptiNode::describe(), casadi::DaeBuilderInternal::find(), casadi::DaeBuilderInternal::import_binding_equations(), casadi::DaeBuilderInternal::import_dynamic_equations(), casadi::DaeBuilderInternal::import_model_variables(), casadi::DaeBuilderInternal::load_fmi_description(), and MX().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_r3
Definition at line 588 of file mx.cpp.
References casadi::Sparsity::dense(), and nan().
Extra doc: https://github.com/casadi/casadi/wiki/L_r3
Definition at line 596 of file mx.cpp.
References casadi::ConstantMX::create(), and create().
Referenced by casadi::MXNode::_get_binary(), nan(), and casadi::qpsol_nlp().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_r3
Definition at line 592 of file mx.cpp.
References nan().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1an
Definition at line 84 of file generic_matrix.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1aq
Definition at line 99 of file generic_matrix.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ao
Definition at line 89 of file generic_matrix.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ap
Definition at line 94 of file generic_matrix.hpp.
|
inlinestaticinherited |
Definition at line 216 of file generic_matrix.hpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 1296 of file mx.cpp.
References casadi::MXNode::get_norm_1().
Functions called by friend functions defined for GenericMatrix
Definition at line 1284 of file mx.cpp.
References casadi::MXNode::get_norm_2(), casadi::GenericMatrix< MatType >::is_vector(), and norm_fro().
Functions called by friend functions defined for GenericMatrix
Definition at line 1292 of file mx.cpp.
References casadi::MXNode::get_norm_fro().
Referenced by norm_2().
Functions called by friend functions defined for GenericMatrix
Definition at line 1300 of file mx.cpp.
References casadi::MXNode::get_norm_inf().
Functions called by friend functions defined for GenericMatrix
Definition at line 2159 of file mx.cpp.
References casadi::Matrix< Scalar >::nullspace(), sparsity(), and casadi::GenericMatrix< Matrix< Scalar > >::sym().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ar
Definition at line 104 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bc
Definition at line 258 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bb
Definition at line 248 of file generic_matrix.hpp.
Intended for writing unittests
Extra doc: https://github.com/casadi/casadi/wiki/L_2er
Definition at line 149 of file mx.cpp.
References casadi::MXNode::get_nzref(), and casadi::GenericMatrix< MX >::nz().
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1di
Definition at line 1302 of file generic_matrix.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1di
Definition at line 1305 of file generic_matrix.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1di
Definition at line 1306 of file generic_matrix.hpp.
| casadi_int casadi::MX::op | ( | ) | const |
Definition at line 851 of file mx.cpp.
Referenced by casadi::UnaryMX::_get_binary(), binary(), cse(), extract(), extract_parametric(), forward(), casadi::MXNode::get_binary(), interpn_linear(), is_commutative(), is_doubled(), is_op(), is_transpose(), casadi::MXFunction::MXFunction(), reset_dump_count(), reverse(), and unary().
|
explicit |
Definition at line 835 of file mx.cpp.
References casadi::MXNode::to_double().
|
explicit |
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bf
Definition at line 286 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bd
Definition at line 266 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bg
Definition at line 294 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1be
Definition at line 276 of file generic_matrix.hpp.
|
inline |
| MX casadi::MX::operator- | ( | ) | const |
Definition at line 604 of file mx.cpp.
References casadi::MXNode::dep(), casadi::MXNode::get_unary(), and casadi::OP_NEG.
| MXNode * casadi::MX::operator-> | ( | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_qh
Definition at line 568 of file mx.cpp.
References casadi::GenericShared< SharedObject, SharedObjectInternal >::operator->().
| const MXNode * casadi::MX::operator-> | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qi
Definition at line 572 of file mx.cpp.
References casadi::GenericShared< SharedObject, SharedObjectInternal >::operator->().
|
inherited |
Assign the node to a node class pointer (or null)
Definition at line 89 of file generic_shared_impl.hpp.
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 2139 of file mx.cpp.
References mtimes(), casadi::GenericMatrix< MatType >::size1(), casadi::GenericMatrix< MatType >::size2(), solve(), and T().
Functions called by friend functions defined for GenericMatrix
Definition at line 1489 of file mx.cpp.
References casadi::GenericMatrix< MatType >::is_column(), casadi::GenericMatrix< MatType >::is_dense(), casadi::GenericMatrix< MatType >::nnz(), and casadi::GenericMatrix< MatType >::nz().
| std::vector< MX > casadi::MX::primitives | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qp
Definition at line 962 of file mx.cpp.
References n_primitives().
Referenced by casadi::DaeBuilderInternal::der(), get_nonzeros(), casadi::DaeBuilderInternal::load_fmi_description(), casadi::OptiNode::set_domain(), and casadi::OptiNode::to_function().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1499 of file mx.cpp.
References casadi::MXNode::disp().
|
inherited |
Print the pointer to the internal class
Definition at line 43 of file shared_object.cpp.
References casadi::GenericShared< SharedObject, SharedObjectInternal >::get().
Functions called by friend functions defined for GenericMatrix
Definition at line 906 of file mx.cpp.
References casadi::GenericMatrix< MatType >::dim(), casadi::Sparsity::dim(), casadi::MXNode::get_project(), casadi::Sparsity::intersect(), casadi::GenericMatrix< MatType >::is_empty(), casadi::GenericMatrix< MatType >::size(), casadi::Sparsity::size(), and sparsity().
Referenced by densify(), get(), set(), set_nz(), simplify_const_folding(), and simplify_ref_count().
|
staticinherited |
Definition at line 237 of file generic_matrix.hpp.
|
staticinherited |
Calculates A + 1/2 * alpha * x*y'
Extra doc: https://github.com/casadi/casadi/wiki/L_1bp
Functions called by friend functions defined for SparsityInterface
Definition at line 2085 of file mx.cpp.
References casadi::MXNode::get_repmat(), MX(), casadi::GenericMatrix< MatType >::size1(), and casadi::GenericMatrix< MatType >::size2().
|
staticinherited |
Definition at line 232 of file generic_matrix.hpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 2099 of file mx.cpp.
References casadi::MXNode::get_repsum().
| void casadi::MX::reset_dump_count | ( | ) |
| void casadi::MX::reset_input | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qt
Functions called by friend functions defined for SparsityInterface
Definition at line 1343 of file mx.cpp.
References casadi::Sparsity::reshape(), casadi::GenericMatrix< MatType >::size1(), casadi::GenericMatrix< MatType >::size2(), and sparsity().
Referenced by MX().
Functions called by friend functions defined for SparsityInterface
Definition at line 1351 of file mx.cpp.
References casadi::MXNode::get_reshape(), casadi::Sparsity::is_reshape(), and sparsity().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1980 of file mx.cpp.
References casadi::FunctionInternal::call_reverse(), casadi::extract_from_dict(), and op().
Referenced by substitute_inplace().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b8
Definition at line 197 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1b8
Definition at line 200 of file generic_matrix.hpp.
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1at
Definition at line 114 of file generic_matrix.hpp.
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 2936 of file mx.cpp.
References join_primitives(), MX(), n_primitives(), casadi::OP_CONST, casadi::OP_INPUT, casadi::OP_OUTPUT, casadi::OP_PARAMETER, split_primitives(), and casadi::GenericMatrix< MX >::zeros().
| void casadi::MX::serialize | ( | SerializingStream & | s | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qz
Set a submatrix, single argument
Definition at line 320 of file mx.cpp.
References erase(), casadi::Sparsity::get_col(), casadi::Sparsity::get_nz(), casadi::MXNode::get_nzassign(), casadi::Sparsity::get_row(), casadi::GenericMatrix< MX >::is_dense(), casadi::GenericMatrix< MatType >::is_dense(), casadi::GenericMatrix< MatType >::is_scalar(), MX(), casadi::GenericMatrix< MatType >::nnz(), casadi::GenericMatrix< MX >::nnz(), casadi::Matrix< Scalar >::nonzeros(), casadi::GenericMatrix< MX >::numel(), casadi::GenericMatrix< MX >::nz(), project(), set(), set_nz(), casadi::GenericMatrix< MatType >::size(), casadi::GenericMatrix< MX >::size1(), casadi::GenericMatrix< MatType >::size1(), casadi::GenericMatrix< MX >::size2(), casadi::GenericMatrix< MatType >::size2(), casadi::Matrix< Scalar >::sparsity(), sparsity(), casadi::str(), T(), and casadi::Sparsity::triplet().
| void casadi::MX::set | ( | const MX & | m, |
| bool | ind1, | ||
| const Matrix< casadi_int > & | rr, | ||
| const Matrix< casadi_int > & | cc | ||
| ) |
Set a submatrix, two arguments
Definition at line 251 of file mx.cpp.
References casadi::GenericMatrix< MatType >::colind(), erase(), casadi::GenericMatrix< MatType >::is_column(), casadi::GenericMatrix< MatType >::is_dense(), casadi::GenericMatrix< MatType >::is_scalar(), casadi::Matrix< Scalar >::nonzeros(), repmat(), casadi::GenericMatrix< MatType >::row(), set(), casadi::GenericMatrix< MatType >::size(), casadi::GenericMatrix< MX >::size1(), casadi::GenericMatrix< MatType >::size1(), casadi::GenericMatrix< MX >::size2(), casadi::GenericMatrix< MatType >::size2(), sparsity(), casadi::str(), casadi::Matrix< Scalar >::T(), T(), and casadi::GenericMatrix< MatType >::zeros().
Set a submatrix, two arguments
Definition at line 246 of file mx.cpp.
References casadi::Slice::all(), set(), and casadi::GenericMatrix< MX >::size2().
Set a submatrix, single argument
Definition at line 315 of file mx.cpp.
References casadi::Slice::all(), and casadi::GenericMatrix< MX >::size1().
Referenced by set().
Set a submatrix, two arguments
Definition at line 241 of file mx.cpp.
References casadi::Slice::all(), set(), and casadi::GenericMatrix< MX >::size1().
Set a submatrix, two arguments
Definition at line 236 of file mx.cpp.
References casadi::Slice::all(), set(), casadi::GenericMatrix< MX >::size1(), and casadi::GenericMatrix< MX >::size2().
Set a submatrix, single argument
Definition at line 392 of file mx.cpp.
References densify(), casadi::Sparsity::find(), casadi::GenericMatrix< MatType >::is_scalar(), casadi::GenericMatrix< MX >::size(), casadi::Sparsity::size(), and casadi::str().
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_rj
|
inline |
Set a set of nonzeros
Definition at line 468 of file mx.cpp.
References casadi::MXNode::get_nzassign(), casadi::GenericMatrix< MatType >::is_dense(), casadi::GenericMatrix< MatType >::is_scalar(), MX(), casadi::GenericMatrix< MX >::nnz(), casadi::GenericMatrix< MatType >::nnz(), casadi::Matrix< Scalar >::nonzeros(), project(), set_nz(), casadi::GenericMatrix< MatType >::size(), casadi::GenericMatrix< MatType >::size1(), casadi::GenericMatrix< MatType >::size2(), casadi::Matrix< Scalar >::sparsity(), sparsity(), casadi::str(), and T().
Set a set of nonzeros
Definition at line 529 of file mx.cpp.
References casadi::MXNode::get_nzassign().
Set a set of nonzeros
Definition at line 463 of file mx.cpp.
References casadi::Slice::all(), and casadi::GenericMatrix< MX >::nnz().
| void casadi::MX::set_temp | ( | casadi_int | t | ) | const |
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1913 of file mx.cpp.
References extract().
Functions called by friend functions defined for GenericMatrix
|
static |
Definition at line 2388 of file mx.cpp.
References casadi::MXFunction::algorithm_, casadi::MXNode::eval_mx(), casadi::Function::get(), casadi::get_const(), casadi::get_ptr(), join_primitives(), MX(), n_primitives(), casadi::OP_INPUT, casadi::OP_OUTPUT, casadi::OP_PARAMETER, project(), casadi::simplify_const_folding_order(), split_primitives(), casadi::Function::sz_arg(), casadi::Function::sz_iw(), casadi::Function::sz_res(), casadi::Function::sz_w(), and casadi::MXFunction::workloc_.
|
static |
Definition at line 2518 of file mx.cpp.
References casadi::MXFunction::algorithm_, casadi::Function::get(), join_primitives(), MX(), n_primitives(), casadi::OP_INPUT, casadi::OP_OUTPUT, casadi::OP_PARAMETER, project(), split_primitives(), and casadi::MXFunction::workloc_.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ax
Definition at line 136 of file generic_matrix.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ay
Definition at line 141 of file generic_matrix.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1as
Definition at line 109 of file generic_matrix.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1au
Definition at line 119 of file generic_matrix.hpp.
|
staticinherited |
Definition at line 228 of file generic_matrix.hpp.
|
staticinherited |
Functions called by friend functions defined here
Functions called by friend functions defined for GenericMatrix
Definition at line 2115 of file mx.cpp.
References casadi::Sparsity::dense(), casadi::MXNode::get_solve_tril(), casadi::MXNode::get_solve_triu(), casadi::Sparsity::is_orthonormal(), casadi::GenericMatrix< MatType >::is_tril(), casadi::GenericMatrix< MatType >::is_triu(), mtimes(), MX(), casadi::GenericMatrix< MatType >::nnz(), casadi::GenericMatrix< MX >::nz(), casadi::Q, sparsity(), sparsity_cast(), and T().
Referenced by casadi::Nlpsol::get_forward(), casadi::Nlpsol::get_reverse(), inv(), mldivide(), mrdivide(), pinv(), and solve().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 2133 of file mx.cpp.
References casadi::Sparsity::is_orthonormal(), casadi::Linsol::solve(), solve(), and sparsity().
| const Sparsity & casadi::MX::sparsity | ( | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_qc
Definition at line 612 of file mx.cpp.
Referenced by casadi::MXNode::_get_binary(), casadi::Constant< Value >::_get_binary(), casadi::UnaryMX::_get_binary(), casadi::GetNonzeros::ad_forward(), casadi::SetNonzeros< Add >::ad_forward(), casadi::GetNonzeros::ad_reverse(), casadi::KronContract::ad_reverse(), casadi::Solve< Tr >::ad_reverse(), casadi::SparsityCast::ad_reverse(), casadi::DaeBuilderInternal::add(), casadi::Assertion::Assertion(), casadi::BinaryMX< ScX, ScY >::BinaryMX(), casadi::OptiNode::canon_expr(), casadi::Convexify::Convexify(), casadi::GetNonzerosParam::create(), casadi::SetNonzeros< Add >::create(), casadi::GetNonzeros::create(), cumsum(), densify(), det(), diag(), casadi::Diagsplit::Diagsplit(), casadi::Dot::Dot(), casadi::dplesol(), casadi::Dump::Dump(), enlarge(), erase(), casadi::GetNonzeros::eval_mx(), casadi::SetNonzeros< Add >::eval_mx(), expm(), expm_const(), casadi::MXFunction::export_code_body(), casadi::MXFunction::generate_lifted(), get(), casadi::MXNode::get_binary(), casadi::Variable::get_der(), casadi::MXNode::get_dot(), casadi::Nlpsol::get_forward(), casadi::MXNode::get_kron(), casadi::MXNode::get_kron_contract(), casadi::MXNode::get_mac(), casadi::Project::get_nzref(), casadi::Nlpsol::get_reverse(), casadi::HorzRepmat::HorzRepmat(), casadi::HorzRepsum::HorzRepsum(), casadi::Horzsplit::Horzsplit(), casadi::Scpgen::init(), casadi::Kron::Kron(), casadi::KronContract::KronContract(), lift(), casadi::Onnx::load(), casadi::Low::Low(), matrix_expand(), casadi::Monitor::Monitor(), mtimes(), casadi::Multiplication::Multiplication(), MX(), nullspace(), casadi::Horzcat::off(), casadi::Vertcat::off(), casadi::Diagcat::off(), casadi::DaeBuilderInternal::outputs(), casadi::OptiNode::parameter(), casadi::MXFunction::print_arg(), project(), casadi::Rank1::Rank1(), casadi::register_symbol(), reshape(), set(), set_nz(), casadi::SetNonzeros< Add >::SetNonzeros(), casadi::SetNonzerosParam< Add >::SetNonzerosParam(), casadi::simpleIRK(), solve(), casadi::Solve< Tr >::Solve(), casadi::Bilin::sp_forward(), casadi::KronContract::sp_forward(), casadi::Bilin::sp_reverse(), casadi::KronContract::sp_reverse(), casadi::Project::sp_reverse(), sparsity_cast(), casadi::Transpose::Transpose(), casadi::PseudoDenseMultiplication::try_create(), unite(), casadi::OptiNode::variable(), and casadi::Vertsplit::Vertsplit().
Functions called by friend functions defined for SparsityInterface
Definition at line 1361 of file mx.cpp.
References casadi::MXNode::get_sparsity_cast(), casadi::GenericMatrix< MatType >::nnz(), casadi::Sparsity::nnz(), sparsity(), and casadi::str().
Referenced by solve().
Extra doc: https://github.com/casadi/casadi/wiki/L_qq
Definition at line 986 of file mx.cpp.
References n_primitives().
Extra doc: https://github.com/casadi/casadi/wiki/L_qq
Definition at line 970 of file mx.cpp.
References n_primitives().
Referenced by extract_parametric(), casadi::DaeBuilderInternal::load_fmi_description(), separate_linear(), simplify_const_folding(), and simplify_ref_count().
Extra doc: https://github.com/casadi/casadi/wiki/L_qq
Definition at line 978 of file mx.cpp.
References n_primitives().
|
inlinestaticinherited |
Definition at line 215 of file generic_matrix.hpp.
Functions called by friend functions defined for this class
Definition at line 3027 of file mx.cpp.
References casadi::combine(), casadi::str(), symvar(), and casadi::SparsityInterface< MatType >::veccat().
Functions called by friend functions defined for this class
Definition at line 3059 of file mx.cpp.
References casadi::combine(), difference(), casadi::str(), symvar(), and casadi::SparsityInterface< MatType >::veccat().
Functions called by friend functions defined for GenericMatrix
Definition at line 1525 of file mx.cpp.
Referenced by casadi::DaeBuilderInternal::transition().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1529 of file mx.cpp.
References casadi::Function::call(), is_equal(), and casadi::GenericMatrix< MX >::size().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1503 of file mx.cpp.
References casadi::Function::get(), is_symbolic(), reverse(), casadi::GenericMatrix< MX >::size(), and casadi::str().
Functions called by friend functions defined for GenericMatrix
Definition at line 1485 of file mx.cpp.
References mtimes(), casadi::GenericMatrix< MX >::ones(), and casadi::GenericMatrix< MatType >::size1().
Functions called by friend functions defined for GenericMatrix
Definition at line 1481 of file mx.cpp.
References mtimes(), casadi::GenericMatrix< MX >::ones(), and casadi::GenericMatrix< MatType >::size2().
|
inlinestaticinherited |
Definition at line 225 of file generic_matrix.hpp.
|
inherited |
Definition at line 105 of file generic_shared_impl.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1de
Definition at line 1261 of file generic_matrix.hpp.
|
inlinestaticinherited |
with nrow-by-ncol symbolic primitives
Extra doc: https://github.com/casadi/casadi/wiki/L_1dg
Definition at line 1280 of file generic_matrix.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1da
Definition at line 1233 of file generic_matrix.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1dc
Definition at line 1247 of file generic_matrix.hpp.
|
staticinherited |
with symbolic primitives of given sparsity
Extra doc: https://github.com/casadi/casadi/wiki/L_1dd
Definition at line 1256 of file generic_matrix.hpp.
|
staticinherited |
symbolic primitives with given sparsity
Extra doc: https://github.com/casadi/casadi/wiki/L_1df
Definition at line 1272 of file generic_matrix.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1db
Definition at line 1240 of file generic_matrix.hpp.
Functions called by friend functions defined for GenericMatrix
Definition at line 2041 of file mx.cpp.
References casadi::Function::free_mx().
Referenced by conditional(), if_else(), matrix_expand(), casadi::OptiNode::set_initial(), casadi::OptiNode::set_linear_scale(), casadi::OptiNode::set_value(), stop_diff(), casadi::OptiNode::symvar(), transform(), and casadi::OptiNode::update_user_dict().
| MX casadi::MX::T | ( | ) | const |
Definition at line 1095 of file mx.cpp.
References casadi::MXNode::get_transpose().
Referenced by casadi::Determinant::ad_forward(), casadi::Solve< Tr >::ad_forward(), casadi::BSplineCommon::ad_reverse(), casadi::Determinant::ad_reverse(), casadi::Inverse::ad_reverse(), casadi::BSplineInterpolant::construct_graph(), cumsum(), casadi::do_inline(), casadi::LinearInterpolant::do_inline(), casadi::get_boor(), casadi::MXNode::get_find(), casadi::Dple::get_forward(), casadi::Expm::get_reverse(), casadi::Nlpsol::get_reverse(), casadi::SqicInterface::init(), mrdivide(), pinv(), casadi::Call::projectArg(), set(), set_nz(), solve(), vertcat(), and vertsplit().
|
staticinherited |
Functions called by friend functions defined here
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1455 of file mx.cpp.
References casadi::GenericMatrix< MatType >::is_square(), and casadi::GenericMatrix< MatType >::size2().
Functions called by friend functions defined for GenericMatrix
Definition at line 1315 of file mx.cpp.
Referenced by transform().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1319 of file mx.cpp.
References transform().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1324 of file mx.cpp.
References symvar(), casadi::Function::transform(), and casadi::SparsityInterface< MatType >::veccat().
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 1333 of file mx.cpp.
References symvar(), casadi::Function::transform(), and casadi::SparsityInterface< MatType >::veccat().
|
inlinestaticinherited |
Definition at line 219 of file generic_matrix.hpp.
|
staticinherited |
Definition at line 230 of file generic_matrix.hpp.
|
inlinestaticinherited |
Definition at line 222 of file generic_matrix.hpp.
|
staticinherited |
Definition at line 231 of file generic_matrix.hpp.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pz
Extra doc: https://github.com/casadi/casadi/wiki/L_r1
Definition at line 560 of file mx.cpp.
References casadi::MXNode::get_unary(), and op().
Referenced by casadi::UnaryMX::eval_mx().
Functions called by friend functions defined for GenericMatrix
Definition at line 1429 of file mx.cpp.
References casadi::MXNode::get_nzassign(), mapping(), casadi::GenericMatrix< MatType >::size(), casadi::GenericMatrix< MatType >::sparsity(), sparsity(), casadi::Sparsity::unite(), and casadi::GenericMatrix< MX >::zeros().
Functions called by friend functions defined for SparsityInterface
Definition at line 1165 of file mx.cpp.
References casadi::GenericMatrix< MX >::dim(), casadi::MXNode::get_vertcat(), casadi::has_empty(), horzcat(), MX(), casadi::GenericExpression< MX >::ne(), casadi::GenericMatrix< MatType >::size(), casadi::GenericMatrix< MX >::size2(), casadi::str(), T(), casadi::trim_empty(), and casadi::GenericMatrix< MX >::zeros().
Referenced by blockcat(), casadi::Nlpsol::get_forward(), casadi::Nlpsol::get_reverse(), casadi::Blocksqp::init(), and linspace().
|
static |
Functions called by friend functions defined for SparsityInterface
Definition at line 1240 of file mx.cpp.
References casadi::MXNode::get_vertsplit(), horzsplit(), casadi::GenericMatrix< MatType >::is_column(), casadi::is_monotone(), casadi::SparsityInterface< MatType >::offset(), casadi::GenericMatrix< MatType >::size1(), and T().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_aw
Definition at line 130 of file generic_shared_impl.hpp.
|
static |
Functions called by friend functions defined for GenericMatrix
Definition at line 2012 of file mx.cpp.
References casadi::_which_depends().
| Function casadi::MX::which_function | ( | ) | const |
Definition at line 807 of file mx.cpp.
Referenced by casadi::DaeBuilderInternal::create(), cse(), casadi::Onnx::load(), and casadi::BlazingSplineFunction::merge().
| casadi_int casadi::MX::which_output | ( | ) | const |
Definition at line 819 of file mx.cpp.
Referenced by casadi::DaeBuilderInternal::create(), cse(), and casadi::DaeBuilderInternal::jac_vdef_v_from_calls().
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1dh
Definition at line 1289 of file generic_matrix.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1dh
Definition at line 1292 of file generic_matrix.hpp.
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1dh
Definition at line 1293 of file generic_matrix.hpp.