Functions | |
static ExType | casadi::GenericExpression< ExType >::plus (const ExType &x, const ExType &y) |
Addition: (x,y) -> x + y. More... | |
ExType & | casadi::GenericExpression< ExType >::operator+= (const ExType &y) |
static MatType | casadi::GenericMatrix< MatType >::logsumexp (const MatType &x) |
Friends | |
ExType | casadi::GenericExpression< ExType >::plus (const ExType &x, const ExType &y) |
ExType | casadi::GenericExpression< ExType >::operator+ (const ExType &x, const ExType &y) |
MatType | casadi::GenericMatrix< MatType >::interp1d (const std::vector< double > &x, const MatType &v, const std::vector< double > &xq, const std::string &mode, bool equidistant=false) |
Performs 1d linear interpolation. More... | |
MatType | casadi::GenericMatrix< MatType >::mpower (const MatType &x, const MatType &n) |
Matrix power x^n. More... | |
MatType | casadi::GenericMatrix< MatType >::soc (const MatType &x, const MatType &y) |
Construct second-order-convex. More... | |
MatType | casadi::GenericMatrix< MatType >::mrdivide (const MatType &x, const MatType &n) |
Matrix divide (cf. slash '/' in MATLAB) More... | |
MatType | casadi::GenericMatrix< MatType >::mldivide (const MatType &x, const MatType &n) |
Matrix divide (cf. backslash '\' in MATLAB) More... | |
std::vector< MatType > | casadi::GenericMatrix< MatType >::symvar (const MatType &x) |
Get all symbols contained in the supplied expression. More... | |
MatType | casadi::GenericMatrix< MatType >::sumsqr (const MatType &x) |
Calculate sum of squares: sum_ij X_ij^2. More... | |
MatType | casadi::GenericMatrix< MatType >::logsumexp (const MatType &x) |
x -> log(sum_i exp(x_i)) More... | |
MatType | casadi::GenericMatrix< MatType >::logsumexp (const MatType &x, const MatType &margin) |
Scaled version of logsumexp. More... | |
MatType | casadi::GenericMatrix< MatType >::linspace (const MatType &a, const MatType &b, casadi_int nsteps) |
Matlab's linspace command. More... | |
MatType | casadi::GenericMatrix< MatType >::cross (const MatType &a, const MatType &b, casadi_int dim=-1) |
Matlab's cross command. More... | |
MatType | casadi::GenericMatrix< MatType >::skew (const MatType &a) |
Generate a skew symmetric matrix from a 3-vector. More... | |
MatType | casadi::GenericMatrix< MatType >::inv_skew (const MatType &a) |
Generate the 3-vector progenitor of a skew symmetric matrix. More... | |
MatType | casadi::GenericMatrix< MatType >::det (const MatType &A) |
Matrix determinant (experimental) More... | |
MatType | casadi::GenericMatrix< MatType >::inv_minor (const MatType &A) |
Matrix inverse (experimental) More... | |
MatType | casadi::GenericMatrix< MatType >::inv (const MatType &A) |
Matrix inverse. More... | |
MatType | casadi::GenericMatrix< MatType >::inv (const MatType &A, const std::string &lsolver, const Dict &options=Dict()) |
Matrix inverse. More... | |
MatType | casadi::GenericMatrix< MatType >::trace (const MatType &x) |
Matrix trace. More... | |
MatType | casadi::GenericMatrix< MatType >::tril2symm (const MatType &a) |
Convert a lower triangular matrix to a symmetric one. More... | |
MatType | casadi::GenericMatrix< MatType >::triu2symm (const MatType &a) |
Convert a upper triangular matrix to a symmetric one. More... | |
MatType | casadi::GenericMatrix< MatType >::norm_fro (const MatType &x) |
Frobenius norm. More... | |
MatType | casadi::GenericMatrix< MatType >::norm_2 (const MatType &x) |
2-norm More... | |
MatType | casadi::GenericMatrix< MatType >::norm_1 (const MatType &x) |
1-norm More... | |
MatType | casadi::GenericMatrix< MatType >::norm_inf (const MatType &x) |
Infinity-norm. More... | |
MatType | casadi::GenericMatrix< MatType >::diff (const MatType &x, casadi_int n=1, casadi_int axis=-1) |
Returns difference (n-th order) along given axis (MATLAB convention) More... | |
MatType | casadi::GenericMatrix< MatType >::cumsum (const MatType &x, casadi_int axis=-1) |
Returns cumulative sum along given axis (MATLAB convention) More... | |
MatType | casadi::GenericMatrix< MatType >::dot (const MatType &x, const MatType &y) |
Inner product of two matrices. More... | |
MatType | casadi::GenericMatrix< MatType >::nullspace (const MatType &A) |
Computes the nullspace of a matrix A. More... | |
MatType | casadi::GenericMatrix< MatType >::polyval (const MatType &p, const MatType &x) |
Evaluate a polynomial with coefficients p in x. More... | |
MatType | casadi::GenericMatrix< MatType >::diag (const MatType &A) |
Get the diagonal of a matrix or construct a diagonal. More... | |
MatType | casadi::GenericMatrix< MatType >::unite (const MatType &A, const MatType &B) |
Unite two matrices no overlapping sparsity. More... | |
MatType | casadi::GenericMatrix< MatType >::densify (const MatType &x) |
Make the matrix dense if not already. More... | |
MatType | casadi::GenericMatrix< MatType >::densify (const MatType &x, const MatType &val) |
Make the matrix dense and assign nonzeros to a value. More... | |
MatType | casadi::GenericMatrix< MatType >::project (const MatType &A, const Sparsity &sp, bool intersect=false) |
Create a new matrix with a given sparsity pattern but with the. More... | |
MatType | casadi::GenericMatrix< MatType >::if_else (const MatType &cond, const MatType &if_true, const MatType &if_false, bool short_circuit=false) |
Branching on MX nodes. More... | |
MatType | casadi::GenericMatrix< MatType >::conditional (const MatType &ind, const std::vector< MatType > &x, const MatType &x_default, bool short_circuit=false) |
Create a switch. More... | |
bool | casadi::GenericMatrix< MatType >::depends_on (const MatType &f, const MatType &arg) |
Check if expression depends on the argument. More... | |
MatType | casadi::GenericMatrix< MatType >::substitute (const MatType &ex, const MatType &v, const MatType &vdef) |
Substitute variable v with expression vdef in an expression ex. More... | |
std::vector< MatType > | casadi::GenericMatrix< MatType >::substitute (const std::vector< MatType > &ex, const std::vector< MatType > &v, const std::vector< MatType > &vdef) |
Substitute variable var with expression expr in multiple expressions. More... | |
void | casadi::GenericMatrix< MatType >::substitute_inplace (const std::vector< MatType > &v, std::vector< MatType > &inout_vdef, std::vector< MatType > &inout_ex, bool reverse=false) |
Inplace substitution with piggyback expressions. More... | |
MatType | casadi::GenericMatrix< MatType >::cse (const MatType &e) |
Common subexpression elimination. More... | |
std::vector< MatType > | casadi::GenericMatrix< MatType >::cse (const std::vector< MatType > &e) |
Common subexpression elimination. More... | |
MatType | casadi::GenericMatrix< MatType >::solve (const MatType &A, const MatType &b) |
Solve a system of equations: A*x = b. More... | |
MatType | casadi::GenericMatrix< MatType >::solve (const MatType &A, const MatType &b, const std::string &lsolver, const Dict &dict=Dict()) |
Solve a system of equations: A*x = b. More... | |
MatType | casadi::GenericMatrix< MatType >::linearize (const MatType &f, const MatType &x, const MatType &x0, const Dict &opts=Dict()) |
Linearize an expression. More... | |
MatType | casadi::GenericMatrix< MatType >::pinv (const MatType &A) |
Computes the Moore-Penrose pseudo-inverse. More... | |
MatType | casadi::GenericMatrix< MatType >::pinv (const MatType &A, const std::string &lsolver, const Dict &dict=Dict()) |
Computes the Moore-Penrose pseudo-inverse. More... | |
MatType | casadi::GenericMatrix< MatType >::expm_const (const MatType &A, const MatType &t) |
Calculate Matrix exponential. More... | |
MatType | casadi::GenericMatrix< MatType >::expm (const MatType &A) |
Calculate Matrix exponential. More... | |
MatType | casadi::GenericMatrix< MatType >::jacobian (const MatType &ex, const MatType &arg, const Dict &opts=Dict()) |
Calculate Jacobian. More... | |
MatType | casadi::GenericMatrix< MatType >::gradient (const MatType &ex, const MatType &arg, const Dict &opts=Dict()) |
Calculate the gradient of an expression. More... | |
MatType | casadi::GenericMatrix< MatType >::tangent (const MatType &ex, const MatType &arg, const Dict &opts=Dict()) |
Calculate the tangent of an expression. More... | |
MatType | casadi::GenericMatrix< MatType >::jtimes (const MatType &ex, const MatType &arg, const MatType &v, bool tr=false, const Dict &opts=Dict()) |
Calculate the Jacobian and multiply by a vector from the right. More... | |
std::vector< std::vector< MatType > > | casadi::GenericMatrix< MatType >::forward (const std::vector< MatType > &ex, const std::vector< MatType > &arg, const std::vector< std::vector< MatType > > &v, const Dict &opts=Dict()) |
Forward directional derivative. More... | |
std::vector< std::vector< MatType > > | casadi::GenericMatrix< MatType >::reverse (const std::vector< MatType > &ex, const std::vector< MatType > &arg, const std::vector< std::vector< MatType > > &v, const Dict &opts=Dict()) |
Reverse directional derivative. More... | |
std::vector< bool > | casadi::GenericMatrix< MatType >::which_depends (const MatType &expr, const MatType &var, casadi_int order, bool tr) |
Find out which variables enter with some order. More... | |
Sparsity | casadi::GenericMatrix< MatType >::jacobian_sparsity (const MatType &f, const MatType &x) |
Get the sparsity pattern of a jacobian. More... | |
bool | casadi::GenericMatrix< MatType >::is_linear (const MatType &expr, const MatType &var) |
Is expr linear in var? More... | |
bool | casadi::GenericMatrix< MatType >::is_quadratic (const MatType &expr, const MatType &var) |
Is expr quadratic in var? More... | |
void | casadi::GenericMatrix< MatType >::quadratic_coeff (const MatType &expr, const MatType &var, MatType &A, MatType &b, MatType &c, bool check=true) |
Recognizes quadratic form in scalar expression. More... | |
void | casadi::GenericMatrix< MatType >::linear_coeff (const MatType &expr, const MatType &var, MatType &A, MatType &b, bool check=true) |
Recognizes linear form in vector expression. More... | |
void | casadi::GenericMatrix< MatType >::extract_parametric (const MatType &expr, const MatType &par, MatType &expr_ret, std::vector< MatType > &symbols, std::vector< MatType > ¶metric, const Dict &opts=Dict()) |
Extract purely parametric parts from an expression graph. More... | |
void | casadi::GenericMatrix< MatType >::extract_parametric (const std::vector< MatType > &expr, const MatType &par, std::vector< MatType > &expr_ret, std::vector< MatType > &symbols, std::vector< MatType > ¶metric, const Dict &opts=Dict()) |
void | casadi::GenericMatrix< MatType >::extract_parametric (const std::vector< MatType > &expr, const std::vector< MatType > &par, std::vector< MatType > &expr_ret, std::vector< MatType > &symbols, std::vector< MatType > ¶metric, const Dict &opts=Dict()) |
void | casadi::GenericMatrix< MatType >::extract_parametric (const MatType &expr, const std::vector< MatType > &par, MatType &expr_ret, std::vector< MatType > &symbols, std::vector< MatType > ¶metric, const Dict &opts=Dict()) |
void | casadi::GenericMatrix< MatType >::separate_linear (const MatType &expr, const MatType &sym_lin, const MatType &sym_const, MatType &expr_const, MatType &expr_lin, MatType &expr_nonlin) |
void | casadi::GenericMatrix< MatType >::separate_linear (const MatType &expr, const std::vector< MatType > &sym_lin, const std::vector< MatType > &sym_const, MatType &expr_const, MatType &expr_lin, MatType &expr_nonlin) |
casadi_int | casadi::GenericMatrix< MatType >::n_nodes (const MatType &A) |
MatType | casadi::GenericMatrix< MatType >::simplify (const MatType &x) |
Simplify an expression. More... | |
std::string | casadi::GenericMatrix< MatType >::print_operator (const MatType &xb, const std::vector< std::string > &args) |
Get a string representation for a binary MatType, using custom arguments. More... | |
void | casadi::GenericMatrix< MatType >::extract (std::vector< MatType > &ex, std::vector< MatType > &v, std::vector< MatType > &vdef, const Dict &opts=Dict()) |
Introduce intermediate variables for selected nodes in a graph. More... | |
void | casadi::GenericMatrix< MatType >::shared (std::vector< MatType > &ex, std::vector< MatType > &v, std::vector< MatType > &vdef, const std::string &v_prefix="v_", const std::string &v_suffix="") |
Extract shared subexpressions from an set of expressions. More... | |
MatType | casadi::GenericMatrix< MatType >::repsum (const MatType &A, casadi_int n, casadi_int m=1) |
Given a repeated matrix, computes the sum of repeated parts. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::adj (const Matrix< Scalar > &A) |
Matrix adjoint. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::minor (const Matrix< Scalar > &x, casadi_int i, casadi_int j) |
Get the (i,j) minor matrix. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::cofactor (const Matrix< Scalar > &x, casadi_int i, casadi_int j) |
Get the (i,j) cofactor matrix. More... | |
void | casadi::Matrix< Scalar >::qr (const Matrix< Scalar > &A, Matrix< Scalar > &Q, Matrix< Scalar > &R) |
QR factorization using the modified Gram-Schmidt algorithm. More... | |
void | casadi::Matrix< Scalar >::qr_sparse (const Matrix< Scalar > &A, Matrix< Scalar > &V, Matrix< Scalar > &R, Matrix< Scalar > &beta, std::vector< casadi_int > &prinv, std::vector< casadi_int > &pc, bool amd=true) |
Sparse direct QR factorization. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::qr_solve (const Matrix< Scalar > &b, const Matrix< Scalar > &v, const Matrix< Scalar > &r, const Matrix< Scalar > &beta, const std::vector< casadi_int > &prinv, const std::vector< casadi_int > &pc, bool tr=false) |
Solve using a sparse QR factorization. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::chol (const Matrix< Scalar > &A) |
Obtain a Cholesky factorisation of a matrix. More... | |
void | casadi::Matrix< Scalar >::ldl (const Matrix< Scalar > &A, Matrix< Scalar > &D, Matrix< Scalar > <, std::vector< casadi_int > &p, bool amd=true) |
Sparse LDL^T factorization. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::ldl_solve (const Matrix< Scalar > &b, const Matrix< Scalar > &D, const Matrix< Scalar > <, const std::vector< casadi_int > &p) |
Solve using a sparse LDL^T factorization. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::any (const Matrix< Scalar > &x) |
Returns true only if any element in the matrix is true. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::all (const Matrix< Scalar > &x) |
Returns true only if every element in the matrix is true. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::norm_inf_mul (const Matrix< Scalar > &x, const Matrix< Scalar > &y) |
Inf-norm of a Matrix-Matrix product. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::sparsify (const Matrix< Scalar > &A, double tol=0) |
Make a matrix sparse by removing numerical zeros. More... | |
void | casadi::Matrix< Scalar >::expand (const Matrix< Scalar > &ex, Matrix< Scalar > &weights, Matrix< Scalar > &terms) |
Expand the expression as a weighted sum (with constant weights) More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::pw_const (const Matrix< Scalar > &t, const Matrix< Scalar > &tval, const Matrix< Scalar > &val) |
Create a piecewise constant function. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::pw_lin (const Matrix< Scalar > &t, const Matrix< Scalar > &tval, const Matrix< Scalar > &val) |
t a scalar variable (e.g. time) More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::heaviside (const Matrix< Scalar > &x) |
Heaviside function. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::rectangle (const Matrix< Scalar > &x) |
rectangle function More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::triangle (const Matrix< Scalar > &x) |
triangle function More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::ramp (const Matrix< Scalar > &x) |
ramp function More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::mtaylor (const Matrix< Scalar > &ex, const Matrix< Scalar > &x, const Matrix< Scalar > &a, casadi_int order=1) |
multivariate Taylor series expansion More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::mtaylor (const Matrix< Scalar > &ex, const Matrix< Scalar > &x, const Matrix< Scalar > &a, casadi_int order, const std::vector< casadi_int > &order_contributions) |
multivariate Taylor series expansion More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::poly_coeff (const Matrix< Scalar > &f, const Matrix< Scalar > &x) |
extracts polynomial coefficients from an expression More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::poly_roots (const Matrix< Scalar > &p) |
Attempts to find the roots of a polynomial. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::eig_symbolic (const Matrix< Scalar > &m) |
Attempts to find the eigenvalues of a symbolic matrix. More... | |
Matrix< double > | casadi::Matrix< Scalar >::evalf (const Matrix< Scalar > &expr) |
Evaluates the expression numerically. More... | |
MX | casadi::MX::find (const MX &x) |
Find first nonzero, returned as row index. More... | |
MX | casadi::MX::low (const MX &v, const MX &p, const Dict &options=Dict()) |
Find first nonzero. More... | |
MX | casadi::MX::graph_substitute (const MX &ex, const std::vector< MX > &v, const std::vector< MX > &vdef) |
Substitute single expression in graph. More... | |
MX | casadi::MX::graph_substitute (const MX &ex, const std::vector< MX > &v, const std::vector< MX > &vdef, bool &updated) |
std::vector< MX > | casadi::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 > | casadi::MX::graph_substitute (const std::vector< MX > &ex, const std::vector< MX > &v, const std::vector< MX > &vdef, bool &updated) |
MX | casadi::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 > | casadi::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 | casadi::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 | casadi::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()) |
DM | casadi::MX::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 | casadi::MX::convexify (const MX &H, const Dict &opts=Dict()) |
MX | casadi::MX::lift (const MX &x, const MX &x_guess) |
Lift the expression. More... | |
MX | casadi::MX::inv_node (const MX &x) |
Inverse node. More... | |
DM | casadi::MX::evalf (const MX &expr) |
Evaluates the expression numerically. More... | |
MX | casadi::MX::stop_diff (const MX &expr, casadi_int order) |
Stop derivatives of an expression wrt to all its symbolic variables. More... | |
MX | casadi::MX::no_grad (const MX &expr) |
Stop first derivatives of an expression wrt to all its symbolic variables. More... | |
MX | casadi::MX::no_hess (const MX &expr) |
Stop second derivatives of an expression wrt to all its symbolic variables. More... | |
MX | casadi::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 > | casadi::MX::difference (const std::vector< MX > &a, const std::vector< MX > &b) |
MatType | casadi::SparsityInterface< MatType >::horzcat (const std::vector< MatType > &v) |
Concatenate a list of matrices horizontally. More... | |
MatType | casadi::SparsityInterface< MatType >::vertcat (const std::vector< MatType > &v) |
Concatenate a list of matrices vertically. More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::horzsplit (const MatType &x, const std::vector< casadi_int > &offset) |
split horizontally, retaining groups of columns More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::horzsplit (const MatType &x, casadi_int incr=1) |
split horizontally, retaining fixed-sized groups of columns More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::horzsplit_n (const MatType &x, casadi_int n) |
split horizontally, retaining fixed-sized groups of columns More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::vertsplit (const MatType &x, const std::vector< casadi_int > &offset) |
split vertically, retaining groups of rows More... | |
std::vector< casadi_int > | casadi::SparsityInterface< MatType >::offset (const std::vector< MatType > &v, bool vert=true) |
Helper function, get offsets corresponding to a vector of matrices. More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::vertsplit (const MatType &x, casadi_int incr=1) |
split vertically, retaining fixed-sized groups of rows More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::vertsplit_n (const MatType &x, casadi_int n) |
split vertically, retaining fixed-sized groups of rows More... | |
MatType | casadi::SparsityInterface< MatType >::blockcat (const std::vector< std::vector< MatType > > &v) |
Construct a matrix from a list of list of blocks. More... | |
MatType | casadi::SparsityInterface< MatType >::blockcat (const MatType &A, const MatType &B, const MatType &C, const MatType &D) |
Construct a matrix from 4 blocks. More... | |
std::vector< std::vector< MatType > > | casadi::SparsityInterface< MatType >::blocksplit (const MatType &x, const std::vector< casadi_int > &vert_offset, const std::vector< casadi_int > &horz_offset) |
chop up into blocks More... | |
std::vector< std::vector< MatType > > | casadi::SparsityInterface< MatType >::blocksplit (const MatType &x, casadi_int vert_incr=1, casadi_int horz_incr=1) |
chop up into blocks More... | |
MatType | casadi::SparsityInterface< MatType >::diagcat (const std::vector< MatType > &A) |
Construct a matrix with given block on the diagonal. More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::diagsplit (const MatType &x, const std::vector< casadi_int > &output_offset1, const std::vector< casadi_int > &output_offset2) |
split diagonally, retaining square matrices More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::diagsplit (const MatType &x, const std::vector< casadi_int > &output_offset) |
split diagonally, retaining square matrices More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::diagsplit (const MatType &x, casadi_int incr=1) |
split diagonally, retaining groups of square matrices More... | |
std::vector< MatType > | casadi::SparsityInterface< MatType >::diagsplit (const MatType &x, casadi_int incr1, casadi_int incr2) |
split diagonally, retaining fixed-sized matrices More... | |
MatType | casadi::SparsityInterface< MatType >::veccat (const std::vector< MatType > &x) |
concatenate vertically while vectorizing all arguments with vec More... | |
MatType | casadi::SparsityInterface< MatType >::mtimes (const MatType &x, const MatType &y) |
Matrix product of two matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::mtimes (const std::vector< MatType > &args) |
Matrix product of n matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::mac (const MatType &x, const MatType &y, const MatType &z) |
Multiply-accumulate operation. More... | |
MatType | casadi::SparsityInterface< MatType >::transpose (const MatType &X) |
Transpose. More... | |
MatType | casadi::SparsityInterface< MatType >::vec (const MatType &x) |
make a vector More... | |
MatType | casadi::SparsityInterface< MatType >::reshape (const MatType &x, casadi_int nrow, casadi_int ncol) |
Returns a reshaped version of the matrix. More... | |
MatType | casadi::SparsityInterface< MatType >::reshape (const MatType &x, std::pair< casadi_int, casadi_int > rc) |
Returns a reshaped version of the matrix, dimensions as a vector. More... | |
MatType | casadi::SparsityInterface< MatType >::reshape (const MatType &x, const Sparsity &sp) |
Reshape the matrix. More... | |
MatType | casadi::SparsityInterface< MatType >::sparsity_cast (const MatType &x, const Sparsity &sp) |
Cast matrix nonzeros to different Sparsity. More... | |
casadi_int | casadi::SparsityInterface< MatType >::sprank (const MatType &x) |
Obtain the structural rank of a sparsity-pattern. More... | |
casadi_int | casadi::SparsityInterface< MatType >::norm_0_mul (const MatType &x, const MatType &y) |
0-norm (nonzero count) of a Matrix-matrix product More... | |
MatType | casadi::SparsityInterface< MatType >::triu (const MatType &x, bool includeDiagonal=true) |
Get the upper triangular part of a matrix. More... | |
MatType | casadi::SparsityInterface< MatType >::tril (const MatType &x, bool includeDiagonal=true) |
Get the lower triangular part of a matrix. More... | |
MatType | casadi::SparsityInterface< MatType >::kron (const MatType &a, const MatType &b) |
Kronecker tensor product. More... | |
MatType | casadi::SparsityInterface< MatType >::repmat (const MatType &A, casadi_int n, casadi_int m=1) |
Repeat matrix A n times vertically and m times horizontally. More... | |
MatType | casadi::SparsityInterface< MatType >::repmat (const MatType &A, const std::pair< casadi_int, casadi_int > &rc) |
Repeat matrix A n times vertically and m times horizontally. More... | |
MatType | casadi::SparsityInterface< MatType >::horzcat (const MatType &x, const MatType &y) |
Concatenate horizontally, two matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::horzcat (const MatType &x, const MatType &y, const MatType &z) |
Concatenate horizontally, three matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::horzcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w) |
Concatenate horizontally, four matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::horzcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w, const MatType &v) |
Concatenate horizontally, five matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::horzcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w, const MatType &v, const MatType &u) |
Concatenate horizontally, six matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::vertcat (const MatType &x, const MatType &y) |
Concatenate vertically, two matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::vertcat (const MatType &x, const MatType &y, const MatType &z) |
Concatenate vertically, three matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::vertcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w) |
Concatenate vertically, four matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::vertcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w, const MatType &v) |
Concatenate vertically, five matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::vertcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w, const MatType &v, const MatType &u) |
Concatenate vertically, six matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::diagcat (const MatType &x, const MatType &y) |
Concatenate along diagonal, two matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::diagcat (const MatType &x, const MatType &y, const MatType &z) |
Concatenate along diagonal, three matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::diagcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w) |
Concatenate along diagonal, four matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::diagcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w, const MatType &v) |
Concatenate along diagonal, five matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::diagcat (const MatType &x, const MatType &y, const MatType &z, const MatType &w, const MatType &v, const MatType &u) |
Concatenate along diagonal, six matrices. More... | |
MatType | casadi::SparsityInterface< MatType >::sum1 (const MatType &x) |
Return a row-wise summation of elements. More... | |
MatType | casadi::SparsityInterface< MatType >::sum2 (const MatType &x) |
Return a column-wise summation of elements. More... | |
MatType | casadi::SparsityInterface< MatType >::sum (const MatType &x) |
Returns summation of all elements. More... | |
static ExType | casadi::GenericExpression< ExType >::minus (const ExType &x, const ExType &y) |
Subtraction: (x,y) -> x - y. More... | |
ExType & | casadi::GenericExpression< ExType >::operator-= (const ExType &y) |
Subtraction: (x,y) -> x - y. More... | |
ExType | casadi::GenericExpression< ExType >::minus (const ExType &x, const ExType &y) |
Subtraction: (x,y) -> x - y. More... | |
ExType | casadi::GenericExpression< ExType >::operator- (const ExType &x, const ExType &y) |
Subtraction: (x,y) -> x - y. More... | |
static ExType | casadi::GenericExpression< ExType >::times (const ExType &x, const ExType &y) |
Elementwise multiplication: (x,y) -> x .* y. More... | |
ExType & | casadi::GenericExpression< ExType >::operator*= (const ExType &y) |
Elementwise multiplication: (x,y) -> x .* y. More... | |
ExType | casadi::GenericExpression< ExType >::times (const ExType &x, const ExType &y) |
Elementwise multiplication: (x,y) -> x .* y. More... | |
ExType | casadi::GenericExpression< ExType >::operator* (const ExType &x, const ExType &y) |
Elementwise multiplication: (x,y) -> x .* y. More... | |
static ExType | casadi::GenericExpression< ExType >::rdivide (const ExType &x, const ExType &y) |
Elementwise division: (x,y) -> x ./ y. More... | |
ExType & | casadi::GenericExpression< ExType >::operator/= (const ExType &y) |
Elementwise division: (x,y) -> x ./ y. More... | |
ExType | casadi::GenericExpression< ExType >::rdivide (const ExType &x, const ExType &y) |
Elementwise division: (x,y) -> x ./ y. More... | |
ExType | casadi::GenericExpression< ExType >::operator/ (const ExType &x, const ExType &y) |
Elementwise division: (x,y) -> x ./ y. More... | |
static ExType | casadi::GenericExpression< ExType >::lt (const ExType &x, const ExType &y) |
Logical less than: (x,y) -> x < y. More... | |
ExType | casadi::GenericExpression< ExType >::lt (const ExType &x, const ExType &y) |
Logical less than: (x,y) -> x < y. More... | |
ExType | casadi::GenericExpression< ExType >::operator< (const ExType &x, const ExType &y) |
Logical less than: (x,y) -> x < y. More... | |
static ExType | casadi::GenericExpression< ExType >::le (const ExType &x, const ExType &y) |
Logical less or equal to: (x,y) -> x <= y. More... | |
ExType | casadi::GenericExpression< ExType >::le (const ExType &x, const ExType &y) |
Logical less or equal to: (x,y) -> x <= y. More... | |
ExType | casadi::GenericExpression< ExType >::operator<= (const ExType &x, const ExType &y) |
Logical less or equal to: (x,y) -> x <= y. More... | |
static ExType | casadi::GenericExpression< ExType >::gt (const ExType &x, const ExType &y) |
Logical greater than: (x,y) -> x > y. More... | |
ExType | casadi::GenericExpression< ExType >::gt (const ExType &x, const ExType &y) |
Logical greater than: (x,y) -> x > y. More... | |
ExType | casadi::GenericExpression< ExType >::operator> (const ExType &x, const ExType &y) |
Logical greater than: (x,y) -> x > y. More... | |
static ExType | casadi::GenericExpression< ExType >::ge (const ExType &x, const ExType &y) |
Logical greater or equal to: (x,y) -> x >= y. More... | |
ExType | casadi::GenericExpression< ExType >::ge (const ExType &x, const ExType &y) |
Logical greater or equal to: (x,y) -> x >= y. More... | |
ExType | casadi::GenericExpression< ExType >::operator>= (const ExType &x, const ExType &y) |
Logical greater or equal to: (x,y) -> x >= y. More... | |
static ExType | casadi::GenericExpression< ExType >::eq (const ExType &x, const ExType &y) |
Logical equal to: (x,y) -> x == y. More... | |
ExType | casadi::GenericExpression< ExType >::eq (const ExType &x, const ExType &y) |
Logical equal to: (x,y) -> x == y. More... | |
ExType | casadi::GenericExpression< ExType >::operator== (const ExType &x, const ExType &y) |
Logical equal to: (x,y) -> x == y. More... | |
static ExType | casadi::GenericExpression< ExType >::ne (const ExType &x, const ExType &y) |
Logical not equal to: (x,y) -> x != y. More... | |
ExType | casadi::GenericExpression< ExType >::ne (const ExType &x, const ExType &y) |
Logical not equal to: (x,y) -> x != y. More... | |
ExType | casadi::GenericExpression< ExType >::operator!= (const ExType &x, const ExType &y) |
Logical not equal to: (x,y) -> x != y. More... | |
static ExType | casadi::GenericExpression< ExType >::logic_and (const ExType &x, const ExType &y) |
Logical and More... | |
ExType | casadi::GenericExpression< ExType >::logic_and (const ExType &x, const ExType &y) |
Logical and More... | |
ExType | casadi::GenericExpression< ExType >::operator&& (const ExType &x, const ExType &y) |
Logical and More... | |
static ExType | casadi::GenericExpression< ExType >::logic_or (const ExType &x, const ExType &y) |
Logical or More... | |
ExType | casadi::GenericExpression< ExType >::logic_or (const ExType &x, const ExType &y) |
Logical or More... | |
ExType | casadi::GenericExpression< ExType >::operator|| (const ExType &x, const ExType &y) |
Logical or More... | |
static ExType | casadi::GenericExpression< ExType >::logic_not (const ExType &x) |
Logical not x -> !x. More... | |
ExType | casadi::GenericExpression< ExType >::operator! () const |
Logical not x -> !x. More... | |
ExType | casadi::GenericExpression< ExType >::logic_not (const ExType &x) |
Logical not x -> !x. More... | |
static ExType | casadi::GenericExpression< ExType >::abs (const ExType &x) |
Absolute value: x -> abs(x) More... | |
ExType | casadi::GenericExpression< ExType >::abs (const ExType &x) |
Absolute value: x -> abs(x) More... | |
ExType | casadi::GenericExpression< ExType >::fabs (const ExType &x) |
Absolute value: x -> abs(x) More... | |
static ExType | casadi::GenericExpression< ExType >::sqrt (const ExType &x) |
Square root: x -> sqrt(x) More... | |
ExType | casadi::GenericExpression< ExType >::sqrt (const ExType &x) |
Square root: x -> sqrt(x) More... | |
static ExType | casadi::GenericExpression< ExType >::sq (const ExType &x) |
Square: x -> x^2. More... | |
ExType | casadi::GenericExpression< ExType >::sq (const ExType &x) |
Square: x -> x^2. More... | |
static ExType | casadi::GenericExpression< ExType >::sin (const ExType &x) |
Sine: x -> sin(x) More... | |
ExType | casadi::GenericExpression< ExType >::sin (const ExType &x) |
Sine: x -> sin(x) More... | |
static ExType | casadi::GenericExpression< ExType >::cos (const ExType &x) |
Cosine: x -> cos(x) More... | |
ExType | casadi::GenericExpression< ExType >::cos (const ExType &x) |
Cosine: x -> cos(x) More... | |
static ExType | casadi::GenericExpression< ExType >::tan (const ExType &x) |
Tangent: x -> tan(x) More... | |
ExType | casadi::GenericExpression< ExType >::tan (const ExType &x) |
Tangent: x -> tan(x) More... | |
static ExType | casadi::GenericExpression< ExType >::atan (const ExType &x) |
Arc tangent: x -> atan(x) More... | |
ExType | casadi::GenericExpression< ExType >::atan (const ExType &x) |
Arc tangent: x -> atan(x) More... | |
static ExType | casadi::GenericExpression< ExType >::asin (const ExType &x) |
Arc sine: x -> asin(x) More... | |
ExType | casadi::GenericExpression< ExType >::asin (const ExType &x) |
Arc sine: x -> asin(x) More... | |
static ExType | casadi::GenericExpression< ExType >::acos (const ExType &x) |
Arc cosine: x -> acos(x) More... | |
ExType | casadi::GenericExpression< ExType >::acos (const ExType &x) |
Arc cosine: x -> acos(x) More... | |
static ExType | casadi::GenericExpression< ExType >::tanh (const ExType &x) |
Hyperbolic tangent: x -> tanh(x) More... | |
ExType | casadi::GenericExpression< ExType >::tanh (const ExType &x) |
Hyperbolic tangent: x -> tanh(x) More... | |
static ExType | casadi::GenericExpression< ExType >::sinh (const ExType &x) |
Hyperbolic sin: x -> sinh(x) More... | |
ExType | casadi::GenericExpression< ExType >::sinh (const ExType &x) |
Hyperbolic sin: x -> sinh(x) More... | |
static ExType | casadi::GenericExpression< ExType >::cosh (const ExType &x) |
Hyperbolic cosine: x -> cosh(x) More... | |
ExType | casadi::GenericExpression< ExType >::cosh (const ExType &x) |
Hyperbolic cosine: x -> cosh(x) More... | |
static ExType | casadi::GenericExpression< ExType >::atanh (const ExType &x) |
Inverse hyperbolic tangent: x -> atanh(x) More... | |
ExType | casadi::GenericExpression< ExType >::atanh (const ExType &x) |
Inverse hyperbolic tangent: x -> atanh(x) More... | |
static ExType | casadi::GenericExpression< ExType >::asinh (const ExType &x) |
Inverse hyperbolic sin: x -> asinh(x) More... | |
ExType | casadi::GenericExpression< ExType >::asinh (const ExType &x) |
Inverse hyperbolic sin: x -> asinh(x) More... | |
static ExType | casadi::GenericExpression< ExType >::acosh (const ExType &x) |
Inverse hyperbolic cosine: x -> acosh(x) More... | |
ExType | casadi::GenericExpression< ExType >::acosh (const ExType &x) |
Inverse hyperbolic cosine: x -> acosh(x) More... | |
static ExType | casadi::GenericExpression< ExType >::exp (const ExType &x) |
Elementwise exponential: x -> exp(x) More... | |
ExType | casadi::GenericExpression< ExType >::exp (const ExType &x) |
Elementwise exponential: x -> exp(x) More... | |
static ExType | casadi::GenericExpression< ExType >::log (const ExType &x) |
Natural logarithm: x -> log(x) More... | |
ExType | casadi::GenericExpression< ExType >::log (const ExType &x) |
Natural logarithm: x -> log(x) More... | |
static ExType | casadi::GenericExpression< ExType >::log10 (const ExType &x) |
Base-10 logarithm: x -> log10(x) More... | |
ExType | casadi::GenericExpression< ExType >::log10 (const ExType &x) |
Base-10 logarithm: x -> log10(x) More... | |
static ExType | casadi::GenericExpression< ExType >::log1p (const ExType &x) |
Precision variant for natural logarithm: x -> log(x+1) More... | |
ExType | casadi::GenericExpression< ExType >::log1p (const ExType &x) |
Precision variant for natural logarithm: x -> log(x+1) More... | |
static ExType | casadi::GenericExpression< ExType >::expm1 (const ExType &x) |
Precision variant for elementwise exponential: x -> exp(x)-1. More... | |
ExType | casadi::GenericExpression< ExType >::expm1 (const ExType &x) |
Precision variant for elementwise exponential: x -> exp(x)-1. More... | |
static ExType | casadi::GenericExpression< ExType >::floor (const ExType &x) |
Round down to nearest integer: x -> floor(x) More... | |
ExType | casadi::GenericExpression< ExType >::floor (const ExType &x) |
Round down to nearest integer: x -> floor(x) More... | |
static ExType | casadi::GenericExpression< ExType >::ceil (const ExType &x) |
Round up to nearest integer: x -> ceil(x) More... | |
ExType | casadi::GenericExpression< ExType >::ceil (const ExType &x) |
Round up to nearest integer: x -> ceil(x) More... | |
static ExType | casadi::GenericExpression< ExType >::erf (const ExType &x) |
Error function: x -> erf(x) More... | |
ExType | casadi::GenericExpression< ExType >::erf (const ExType &x) |
Error function: x -> erf(x) More... | |
static ExType | casadi::GenericExpression< ExType >::erfinv (const ExType &x) |
Inverse error function: x -> erfinv(x) More... | |
ExType | casadi::GenericExpression< ExType >::erfinv (const ExType &x) |
Inverse error function: x -> erfinv(x) More... | |
static ExType | casadi::GenericExpression< ExType >::sign (const ExType &x) |
Sign function: More... | |
ExType | casadi::GenericExpression< ExType >::sign (const ExType &x) |
Sign function: More... | |
static ExType | casadi::GenericExpression< ExType >::pow (const ExType &x, const ExType &y) |
Elementwise power: (x,y) -> x.^y. More... | |
ExType | casadi::GenericExpression< ExType >::pow (const ExType &x, const ExType &y) |
Elementwise power: (x,y) -> x.^y. More... | |
static ExType | casadi::GenericExpression< ExType >::mod (const ExType &x, const ExType &y) |
Remainder after division: (x,y) -> fmod(x,y) More... | |
ExType | casadi::GenericExpression< ExType >::mod (const ExType &x, const ExType &y) |
Remainder after division: (x,y) -> fmod(x,y) More... | |
ExType | casadi::GenericExpression< ExType >::fmod (const ExType &x, const ExType &y) |
Remainder after division: (x,y) -> fmod(x,y) More... | |
static ExType | casadi::GenericExpression< ExType >::remainder (const ExType &x, const ExType &y) |
Remainder after division: (x,y) -> remainder(x,y) More... | |
ExType | casadi::GenericExpression< ExType >::remainder (const ExType &x, const ExType &y) |
Remainder after division: (x,y) -> remainder(x,y) More... | |
static ExType | casadi::GenericExpression< ExType >::atan2 (const ExType &y, const ExType &x) |
Two argument arc tangent: (y,x) -> atan2(y,x) More... | |
ExType | casadi::GenericExpression< ExType >::atan2 (const ExType &y, const ExType &x) |
Two argument arc tangent: (y,x) -> atan2(y,x) More... | |
static ExType | casadi::GenericExpression< ExType >::if_else_zero (const ExType &x, const ExType &y) |
Conditional assignment: (x,y) -> x ? y : 0. More... | |
ExType | casadi::GenericExpression< ExType >::if_else_zero (const ExType &x, const ExType &y) |
Conditional assignment: (x,y) -> x ? y : 0. More... | |
static ExType | casadi::GenericExpression< ExType >::fmin (const ExType &x, const ExType &y) |
Smallest of two values: (x,y) -> min(x,y) More... | |
ExType | casadi::GenericExpression< ExType >::fmin (const ExType &x, const ExType &y) |
Smallest of two values: (x,y) -> min(x,y) More... | |
static ExType | casadi::GenericExpression< ExType >::fmax (const ExType &x, const ExType &y) |
Largest of two values: (x,y) -> max(x,y) More... | |
ExType | casadi::GenericExpression< ExType >::fmax (const ExType &x, const ExType &y) |
Largest of two values: (x,y) -> max(x,y) More... | |
static ExType | casadi::GenericExpression< ExType >::copysign (const ExType &x, const ExType &y) |
ExType | casadi::GenericExpression< ExType >::copysign (const ExType &x, const ExType &y) |
static ExType | casadi::GenericExpression< ExType >::constpow (const ExType &x, const ExType &y) |
ExType | casadi::GenericExpression< ExType >::constpow (const ExType &x, const ExType &y) |
static ExType | casadi::GenericExpression< ExType >::printme (const ExType &x, const ExType &y) |
ExType | casadi::GenericExpression< ExType >::printme (const ExType &x, const ExType &y) |
static ExType | casadi::GenericExpression< ExType >::hypot (const ExType &x, const ExType &y) |
Precision variant for 2 norm: (x,y) -> sqrt(x^2+y^2) More... | |
ExType | casadi::GenericExpression< ExType >::hypot (const ExType &x, const ExType &y) |
Precision variant for 2 norm: (x,y) -> sqrt(x^2+y^2) More... | |
static MatType | casadi::GenericMatrix< MatType >::bilin (const MatType &A, const MatType &x, const MatType &y) |
Calculate bilinear/quadratic form x^T A y. More... | |
MatType | casadi::GenericMatrix< MatType >::bilin (const MatType &A, const MatType &x, const MatType &y) |
Calculate bilinear/quadratic form x^T A y. More... | |
MatType | casadi::GenericMatrix< MatType >::bilin (const MatType &A, const MatType &x) |
Calculate bilinear/quadratic form x^T A y. More... | |
static MatType | casadi::GenericMatrix< MatType >::rank1 (const MatType &A, const MatType &alpha, const MatType &x, const MatType &y) |
Make a rank-1 update to a matrix A. More... | |
MatType | casadi::GenericMatrix< MatType >::rank1 (const MatType &A, const MatType &alpha, const MatType &x, const MatType &y) |
Make a rank-1 update to a matrix A. More... | |
static MatType | casadi::GenericMatrix< MatType >::jtimes (const MatType &ex, const MatType &arg, const MatType &v, bool tr=false, const Dict &opts=Dict()) |
static MatType | casadi::GenericMatrix< MatType >::gradient (const MatType &ex, const MatType &arg, const Dict &opts=Dict()) |
static MatType | casadi::GenericMatrix< MatType >::tangent (const MatType &ex, const MatType &arg, const Dict &opts=Dict()) |
static MatType | casadi::GenericMatrix< MatType >::linearize (const MatType &f, const MatType &x, const MatType &x0, const Dict &opts=Dict()) |
static MatType | casadi::GenericMatrix< MatType >::mpower (const MatType &x, const MatType &y) |
static MatType | casadi::GenericMatrix< MatType >::soc (const MatType &x, const MatType &y) |
bool | casadi::GenericExpression< ExType >::is_equal (const ExType &x, const ExType &y, casadi_int depth=0) |
Check if two nodes are equivalent up to a given depth. More... | |
MatType | casadi::GenericMatrix< MatType >::einstein (const MatType &A, const MatType &B, const MatType &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) |
Compute any contraction of two dense tensors, using index/einstein notation. More... | |
MatType | casadi::GenericMatrix< MatType >::einstein (const MatType &A, const MatType &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) |
Compute any contraction of two dense tensors, using index/einstein notation. More... | |
bool | casadi::GenericMatrix< MatType >::contains (const std::vector< MatType > &v, const MatType &n) |
Check if expression n is listed in v. More... | |
bool | casadi::GenericMatrix< MatType >::contains_all (const std::vector< MatType > &v, const std::vector< MatType > &n) |
Check if expression n is listed in v. More... | |
bool | casadi::GenericMatrix< MatType >::contains_any (const std::vector< MatType > &v, const std::vector< MatType > &n) |
Check if expression n is listed in v. More... | |
MatType | casadi::GenericMatrix< MatType >::hessian (const MatType &ex, const MatType &arg, const Dict &opts=Dict()) |
Hessian and (optionally) gradient. More... | |
MatType | casadi::GenericMatrix< MatType >::hessian (const MatType &ex, const MatType &arg, MatType &output_g, const Dict &opts=Dict()) |
Hessian and (optionally) gradient. More... | |
MatType | casadi::GenericMatrix< MatType >::mmin (const MatType &x) |
Smallest element in a matrix. More... | |
MatType | casadi::GenericMatrix< MatType >::mmax (const MatType &x) |
Largest element in a matrix. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::gauss_quadrature (const Matrix< Scalar > &f, const Matrix< Scalar > &x, const Matrix< Scalar > &a, const Matrix< Scalar > &b, casadi_int order=5) |
Integrate f from a to b using Gaussian quadrature with n points. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::gauss_quadrature (const Matrix< Scalar > &f, const Matrix< Scalar > &x, const Matrix< Scalar > &a, const Matrix< Scalar > &b, casadi_int order, const Matrix< Scalar > &w) |
Integrate f from a to b using Gaussian quadrature with n points. More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::taylor (const Matrix< Scalar > &ex, const Matrix< Scalar > &x, const Matrix< Scalar > &a, casadi_int order=1) |
univariate Taylor series expansion More... | |
Matrix< Scalar > | casadi::Matrix< Scalar >::taylor (const Matrix< Scalar > &ex, const Matrix< Scalar > &x) |
univariate Taylor series expansion More... | |
Functions for manipulating DM, SX, MX or Sparsity
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p0
Definition at line 275 of file generic_expression.hpp.
References casadi::OP_FABS.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p8
Definition at line 374 of file generic_expression.hpp.
References casadi::OP_ACOS.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pe
Definition at line 446 of file generic_expression.hpp.
References casadi::OP_ACOSH.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p7
Definition at line 362 of file generic_expression.hpp.
References casadi::OP_ASIN.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pd
Definition at line 434 of file generic_expression.hpp.
References casadi::OP_ASINH.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p6
Definition at line 350 of file generic_expression.hpp.
References casadi::OP_ATAN.
|
inlinestatic |
theta = atan2(y,x) corresponds to x = r cos(theta), y = r sin(theta)
Extra doc: https://github.com/casadi/casadi/wiki/L_pr
Definition at line 648 of file generic_expression.hpp.
References casadi::OP_ATAN2.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pc
Definition at line 422 of file generic_expression.hpp.
References casadi::OP_ATANH.
|
static |
[in] | y | can be omitted, in which case x^T A x is calculated |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bo
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pl
Definition at line 530 of file generic_expression.hpp.
References casadi::OP_CEIL.
|
inlinestatic |
Elementwise power with const power
Definition at line 720 of file generic_expression.hpp.
References casadi::OP_CONSTPOW.
|
inlinestatic |
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p4
Definition at line 326 of file generic_expression.hpp.
References casadi::OP_COS.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pb
Definition at line 410 of file generic_expression.hpp.
References casadi::OP_COSH.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_ov
Definition at line 191 of file generic_expression.hpp.
References casadi::OP_EQ.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pm
Definition at line 542 of file generic_expression.hpp.
References casadi::OP_ERF.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pn
Definition at line 554 of file generic_expression.hpp.
References casadi::OP_ERFINV.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pf
Definition at line 458 of file generic_expression.hpp.
References casadi::OP_EXP.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pj
Definition at line 506 of file generic_expression.hpp.
References casadi::OP_EXPM1.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pk
Definition at line 518 of file generic_expression.hpp.
References casadi::OP_FLOOR.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pu
Definition at line 684 of file generic_expression.hpp.
References casadi::OP_FMAX.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pt
Definition at line 672 of file generic_expression.hpp.
References casadi::OP_FMIN.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_ou
Definition at line 176 of file generic_expression.hpp.
|
static |
Functions called by friend functions defined here
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_ot
Definition at line 161 of file generic_expression.hpp.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pw
Definition at line 742 of file generic_expression.hpp.
References casadi::OP_HYPOT.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_ps
Definition at line 660 of file generic_expression.hpp.
References casadi::OP_IF_ELSE_ZERO.
|
static |
Functions called by friend functions defined here
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_os
Definition at line 146 of file generic_expression.hpp.
References casadi::OP_LE.
|
static |
Functions called by friend functions defined here
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pg
Definition at line 470 of file generic_expression.hpp.
References casadi::OP_LOG.
Referenced by casadi::GenericExpression< ExType >::log10().
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_ph
Definition at line 482 of file generic_expression.hpp.
References casadi::GenericExpression< ExType >::log().
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pi
Definition at line 494 of file generic_expression.hpp.
References casadi::OP_LOG1P.
|
inlinestatic |
Returns (an expression evaluating to) 1 if both expressions are nonzero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_ox
Definition at line 224 of file generic_expression.hpp.
References casadi::OP_AND.
|
inlinestatic |
Returns (an expression evaluating to) 1 if expression is zero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_oz
Definition at line 260 of file generic_expression.hpp.
References casadi::OP_NOT.
Referenced by casadi::GenericExpression< ExType >::operator!().
|
inlinestatic |
returns (an expression evaluating to) 1 if at least one expression is nonzero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_oy
Definition at line 242 of file generic_expression.hpp.
References casadi::OP_OR.
|
static |
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_or
Definition at line 131 of file generic_expression.hpp.
References casadi::OP_LT.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_oo
Definition at line 83 of file generic_expression.hpp.
References casadi::OP_SUB.
|
inlinestatic |
This Function follows the convention of https://en.cppreference.com/w/c/numeric/math/fmod
Notably:
This is equivalent to Python's numpy.fmod and Matlab's rem.
\seealso remainder
Extra doc: https://github.com/casadi/casadi/wiki/L_pq
Definition at line 607 of file generic_expression.hpp.
References casadi::OP_FMOD.
|
static |
Functions called by friend functions defined here
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_ow
Definition at line 206 of file generic_expression.hpp.
References casadi::OP_NE.
|
inline |
Returns (an expression evaluating to) 1 if expression is zero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_oz
Definition at line 266 of file generic_expression.hpp.
References casadi::GenericExpression< ExType >::logic_not().
|
inline |
Extra doc: https://github.com/casadi/casadi/wiki/L_op
Definition at line 108 of file generic_expression.hpp.
|
inline |
Definition at line 76 of file generic_expression.hpp.
|
inline |
Extra doc: https://github.com/casadi/casadi/wiki/L_oo
Definition at line 92 of file generic_expression.hpp.
|
inline |
Extra doc: https://github.com/casadi/casadi/wiki/L_oq
Definition at line 124 of file generic_expression.hpp.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_on
Definition at line 67 of file generic_expression.hpp.
References casadi::OP_ADD.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pp
Definition at line 583 of file generic_expression.hpp.
References casadi::OP_POW.
|
inlinestatic |
Debug printing
Definition at line 730 of file generic_expression.hpp.
References casadi::OP_PRINTME.
|
static |
Calculates A + 1/2 * alpha * x*y'
Extra doc: https://github.com/casadi/casadi/wiki/L_1bp
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_oq
Definition at line 115 of file generic_expression.hpp.
References casadi::OP_DIV.
|
inlinestatic |
This Function follows the convention of https://en.cppreference.com/w/c/numeric/math/remainder
Notably:
This is equivalent to Python's math.remainder. There is no equivalence in Matlab.
\seealso fmod
Extra doc: https://github.com/casadi/casadi/wiki/L_24x
Definition at line 634 of file generic_expression.hpp.
References casadi::OP_REMAINDER.
|
inlinestatic |
sign(x) := -1 for x<0 sign(x) := 1 for x>0, sign(0) := 0 sign(NaN) := NaN
Extra doc: https://github.com/casadi/casadi/wiki/L_po
Definition at line 571 of file generic_expression.hpp.
References casadi::OP_SIGN.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p3
Definition at line 314 of file generic_expression.hpp.
References casadi::OP_SIN.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_pa
Definition at line 398 of file generic_expression.hpp.
References casadi::OP_SINH.
|
static |
Functions called by friend functions defined here
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p2
Definition at line 302 of file generic_expression.hpp.
References casadi::OP_SQ.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p1
Definition at line 290 of file generic_expression.hpp.
References casadi::OP_SQRT.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p5
Definition at line 338 of file generic_expression.hpp.
References casadi::OP_TAN.
|
static |
Functions called by friend functions defined here
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_p9
Definition at line 386 of file generic_expression.hpp.
References casadi::OP_TANH.
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_op
Definition at line 99 of file generic_expression.hpp.
References casadi::OP_MUL.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p0
Definition at line 278 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p8
Definition at line 377 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pe
Definition at line 449 of file generic_expression.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_18p
Definition at line 529 of file matrix_decl.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_18z
Definition at line 622 of file matrix_decl.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_18y
Definition at line 615 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p7
Definition at line 365 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pd
Definition at line 437 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p6
Definition at line 353 of file generic_expression.hpp.
|
friend |
theta = atan2(y,x) corresponds to x = r cos(theta), y = r sin(theta)
Extra doc: https://github.com/casadi/casadi/wiki/L_pr
Definition at line 651 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pc
Definition at line 425 of file generic_expression.hpp.
|
friend |
[in] | y | can be omitted, in which case x^T A x is calculated |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bo
Definition at line 406 of file generic_matrix.hpp.
|
friend |
[in] | y | can be omitted, in which case x^T A x is calculated |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bo
Definition at line 403 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3m
Definition at line 234 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3l
Definition at line 226 of file sparsity_interface.hpp.
|
friend |
vert_incr | Defines the increment for block boundaries in row dimension |
horz_incr | Defines the increment for block boundaries in column dimension |
blockcat(blocksplit(x,..., ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3o
Definition at line 262 of file sparsity_interface.hpp.
|
friend |
vert_offset | Defines the boundaries of the block rows |
horz_offset | Defines the boundaries of the block columns |
blockcat(blocksplit(x,..., ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3n
Definition at line 247 of file sparsity_interface.hpp.
|
friend |
Definition at line 823 of file mx.hpp.
|
friend |
|
friend |
Definition at line 840 of file mx.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pl
Definition at line 533 of file generic_expression.hpp.
Performs and LDL transformation [L,D] = ldl(A) and returns diag(sqrt(D))*L'
Extra doc: https://github.com/casadi/casadi/wiki/L_18v
Definition at line 587 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_18r
Definition at line 543 of file matrix_decl.hpp.
|
friend |
If the condition
ind | evaluates to the integer k, where 0<=k<f.size(), then x[k] will be returned, otherwise |
x_default | will be returned. |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cj
Definition at line 647 of file generic_matrix.hpp.
|
friend |
Elementwise power with const power
Definition at line 723 of file generic_expression.hpp.
|
friend |
This function checks for correspondence between nodes. The detection does not descend into the expression graph.
contains({a,b},b) -> true contains({a+b},b) -> false
e = a+b contains({e},e) -> true
For mathematical dependency, see depends_on
Extra doc: https://github.com/casadi/casadi/wiki/L_2c8
Definition at line 685 of file generic_matrix.hpp.
|
friend |
This function checks for correspondence between nodes. The detection does not descend into the expression graph.
contains({a,b},b) -> true contains({a+b},b) -> false
e = a+b contains({e},e) -> true
For mathematical dependency, see depends_on
Extra doc: https://github.com/casadi/casadi/wiki/L_2c8
Definition at line 689 of file generic_matrix.hpp.
|
friend |
This function checks for correspondence between nodes. The detection does not descend into the expression graph.
contains({a,b},b) -> true contains({a+b},b) -> false
e = a+b contains({e},e) -> true
For mathematical dependency, see depends_on
Extra doc: https://github.com/casadi/casadi/wiki/L_2c8
Definition at line 693 of file generic_matrix.hpp.
Definition at line 847 of file mx.hpp.
|
friend |
Copy sign
Definition at line 713 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p4
Definition at line 329 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pb
Definition at line 413 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bu
Definition at line 467 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1co
Definition at line 731 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cp
Definition at line 739 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c9
Definition at line 556 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cf
Definition at line 610 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cg
Definition at line 617 of file generic_matrix.hpp.
|
friend |
The argument must be symbolic
The dependency is in a mathematical way: Does the value of the argument affect the value of the expression? Equivalently, will the corresponding entry of the Jacobian by a non-zero?
The symbol could still be present in the expression graph.
To check that kind of dependency, use contains(symvar(f),arg)
Extra doc: https://github.com/casadi/casadi/wiki/L_1ck
Definition at line 665 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bx
Definition at line 488 of file generic_matrix.hpp.
|
friend |
When the input is square, the diagonal elements are returned. If the input is vector-like, a diagonal matrix is constructed with it.
Extra doc: https://github.com/casadi/casadi/wiki/L_1cd
Definition at line 596 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4k
Definition at line 548 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4l
Definition at line 555 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4m
Definition at line 562 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4n
Definition at line 570 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4o
Definition at line 578 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3p
Definition at line 269 of file sparsity_interface.hpp.
|
friend |
incr1 | Row dimension of each matrix |
incr2 | Column dimension of each matrix |
diagsplit(diagsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3t
Definition at line 324 of file sparsity_interface.hpp.
|
friend |
incr | Size of each matrix |
diagsplit(diagsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3s
Definition at line 311 of file sparsity_interface.hpp.
|
friend |
output_offset | List of all start locations for each group the last matrix will run to the end. |
diagcat(diagsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3r
Definition at line 299 of file sparsity_interface.hpp.
|
friend |
output_offset1 | List of all start locations (row) for each group the last matrix will run to the end. |
output_offset2 | List of all start locations (row) for each group the last matrix will run to the end. |
diagcat(diagsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3q
Definition at line 284 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c8
Definition at line 549 of file generic_matrix.hpp.
\bried Return all elements of a that do not occur in b, preserving order
Definition at line 911 of file mx.hpp.
|
friend |
with x and y matrices of the same dimension
Extra doc: https://github.com/casadi/casadi/wiki/L_1ca
Definition at line 565 of file generic_matrix.hpp.
Referenced by casadi::GenericMatrix< MatType >::sumsqr().
This will only work for up to 3x3 matrices
Extra doc: https://github.com/casadi/casadi/wiki/L_199
Definition at line 866 of file matrix_decl.hpp.
|
friend |
einstein(A, B, a, b, c) -> C
Given two tensors, A and B, computes a third tensor C such that:
C_c = A_a * B_b
With a, b, c representing einstein indices. Instead of the classical index labels i,j,k,... we employ -1,-2,-3,...
A, B, C are represented as CasADi vectors, with dim_a, dim_b, dim_c indictating theire tensorial dimensions.
Extra doc: https://github.com/casadi/casadi/wiki/L_1bk
Definition at line 355 of file generic_matrix.hpp.
|
friend |
einstein(A, B, a, b, c) -> C
Given two tensors, A and B, computes a third tensor C such that:
C_c = A_a * B_b
With a, b, c representing einstein indices. Instead of the classical index labels i,j,k,... we employ -1,-2,-3,...
A, B, C are represented as CasADi vectors, with dim_a, dim_b, dim_c indictating theire tensorial dimensions.
Extra doc: https://github.com/casadi/casadi/wiki/L_1bk
Definition at line 364 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ov
Definition at line 194 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pm
Definition at line 545 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pn
Definition at line 557 of file generic_expression.hpp.
An error is raised when the expression contains symbols
Extra doc: https://github.com/casadi/casadi/wiki/L_19a
Definition at line 876 of file matrix_decl.hpp.
An error is raised when the expression contains symbols
Extra doc: https://github.com/casadi/casadi/wiki/L_rf
Definition at line 873 of file mx.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pf
Definition at line 461 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_192
Definition at line 645 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_23w
Definition at line 846 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pj
Definition at line 509 of file generic_expression.hpp.
|
friend |
Computes expm(A*t) with A constant
A[in] | Square matrix |
t[in] | Scalar |
Extra doc: https://github.com/casadi/casadi/wiki/L_23v
Definition at line 838 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d5
Definition at line 1138 of file generic_matrix.hpp.
|
friend |
The purpose of extract_parametric is ultimately to save on evaluation time of an expression, by extracting out the parts that are only solely dependent on parameters.
For any: [expr_ret, symbols, parametric] = extract_parametric(expr, par) It holds that: substitute(expr_ret,symbols,parametric) == expr
parametric is only dependant on par expr_ret is not dependant on par, but is dependant on symbols
Example: [expr_ret, symbols, parametric] = extract_parametric((x-sqrt(p))*y+cos(p)**2, p)
expr_ret: (((x-extracted1)*y)+extracted2) symbols: [extracted1, extracted2] parametric: [sqrt(p),cos(p)**2]
Options to control the name of new symbols:
Option 'extract_trivial' controls the behaviour for extracted parts that consist of pure symbols. If false (default), these parts are not extracted.
Extra doc: https://github.com/casadi/casadi/wiki/L_288
Definition at line 1025 of file generic_matrix.hpp.
|
friend |
Definition at line 1069 of file generic_matrix.hpp.
|
friend |
Definition at line 1033 of file generic_matrix.hpp.
|
friend |
Definition at line 1060 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p0
Definition at line 281 of file generic_expression.hpp.
If failed, returns the number of rows
Extra doc: https://github.com/casadi/casadi/wiki/L_r7
Definition at line 748 of file mx.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pk
Definition at line 521 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pu
Definition at line 687 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pt
Definition at line 675 of file generic_expression.hpp.
|
friend |
This Function follows the convention of https://en.cppreference.com/w/c/numeric/math/fmod
Notably:
This is equivalent to Python's numpy.fmod and Matlab's rem.
\seealso remainder
Extra doc: https://github.com/casadi/casadi/wiki/L_pq
Definition at line 613 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cx
Definition at line 897 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_196
Definition at line 757 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_196
Definition at line 751 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ou
Definition at line 179 of file generic_expression.hpp.
|
friend |
ex[in] | Scalar expression to take the gradient of |
arg[in] | Vector expression of symbols |
opts[in] | Options |
Extra doc: https://github.com/casadi/casadi/wiki/L_23x
Definition at line 868 of file generic_matrix.hpp.
|
friend |
Substitute variable v with expression vdef in an expression ex, preserving nodes
Extra doc: https://github.com/casadi/casadi/wiki/L_r9
Definition at line 766 of file mx.hpp.
|
friend |
|
friend |
Substitute variable var with expression expr in multiple expressions, preserving nodes
Extra doc: https://github.com/casadi/casadi/wiki/L_ra
|
friend |
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ot
Definition at line 164 of file generic_expression.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_195
Definition at line 693 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_23z
Definition at line 917 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_23z
Definition at line 921 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4a
Definition at line 472 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4b
Definition at line 479 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4c
Definition at line 486 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4d
Definition at line 494 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4e
Definition at line 502 of file sparsity_interface.hpp.
|
friend |
Alternative terminology: horizontal stack, hstack, horizontal append, [a b]
horzcat(horzsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3e
Definition at line 97 of file sparsity_interface.hpp.
|
friend |
incr | Size (width) of each group of columns |
horzcat(horzsplit(x, ...)) = x
\seealso horzsplit_n
Extra doc: https://github.com/casadi/casadi/wiki/L_3h
Definition at line 134 of file sparsity_interface.hpp.
|
friend |
offset | List of all start columns for each group the last column group will run to the end. |
horzcat(horzsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3g
Definition at line 121 of file sparsity_interface.hpp.
|
friend |
n | Number of groups of columns |
Will error when the number of columns is not a multiple of n
horzcat(horzsplit(x, ...)) = x
\seealso horzsplit
Extra doc: https://github.com/casadi/casadi/wiki/L_277
Definition at line 149 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pw
Definition at line 745 of file generic_expression.hpp.
|
friend |
Ternary operator, "cond ? if_true : if_false"
Extra doc: https://github.com/casadi/casadi/wiki/L_1ci
Definition at line 636 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ps
Definition at line 663 of file generic_expression.hpp.
|
friend |
The data-points to be interpolated are given as (x[i], v[i]). xq[j] is used as interpolating value
Extra doc: https://github.com/casadi/casadi/wiki/L_1bh
Definition at line 311 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bz
Definition at line 498 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c0
Definition at line 505 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1by
Definition at line 493 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bw
Definition at line 481 of file generic_matrix.hpp.
|
friend |
Depth=0 checks if the expressions are identical, i.e. points to the same node.
a = x*x b = x*x
is_equal(a,b,0) will return false, but a.is_equal(a,b,1) will return true
Extra doc: https://github.com/casadi/casadi/wiki/L_pv
Definition at line 703 of file generic_expression.hpp.
|
friend |
False negatives are possible (an expression may not be recognised as linear while it really is), false positives not.
Extra doc: https://github.com/casadi/casadi/wiki/L_1d0
Definition at line 951 of file generic_matrix.hpp.
|
friend |
False negatives are possible (an expression may not be recognised as quadratic while it really is), false positives not.
Extra doc: https://github.com/casadi/casadi/wiki/L_1d1
Definition at line 962 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cv
Definition at line 855 of file generic_matrix.hpp.
|
friend |
Equivalent to, but cheaper to compute than, jacobian(f,x).sparsity()
Extra doc: https://github.com/casadi/casadi/wiki/L_259
Definition at line 940 of file generic_matrix.hpp.
|
friend |
This is equivalent to mul(jacobian(ex, arg), v)
or mul(jacobian(ex, arg).T, v)
for tr set to false and true respectively. If contrast to these expressions, it will use directional derivatives which is typically (but not necessarily) more efficient if the complete Jacobian is not needed and v has few rows.
Extra doc: https://github.com/casadi/casadi/wiki/L_1cw
Definition at line 888 of file generic_matrix.hpp.
|
friend |
Creates a block matrix in which each element (i, j) is a_ij*b
Extra doc: https://github.com/casadi/casadi/wiki/L_47
Definition at line 451 of file sparsity_interface.hpp.
|
friend |
Returns D and the strictly upper triangular entries of L^T I.e. ones on the diagonal are ignored. Only guarenteed to work for positive definite matrices.
Extra doc: https://github.com/casadi/casadi/wiki/L_18w
Definition at line 598 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_18x
Definition at line 607 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_os
Definition at line 149 of file generic_expression.hpp.
Experimental feature
Extra doc: https://github.com/casadi/casadi/wiki/L_rd
Definition at line 857 of file mx.hpp.
|
friend |
A x + b
check[in] | When true (default)m, A is checked to be independent of x. Provided to deal with false positive dependency checks. |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d3
Definition at line 989 of file generic_matrix.hpp.
|
friend |
[DEPRECATED] confusing behaviour
This function linearizes an expression around a point x0, using x as delta around that point.
For a variant that returns sin(x0)+cos(x0)*(x-x0), see taylor.
Extra doc: https://github.com/casadi/casadi/wiki/L_1cs
Definition at line 795 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bt
Definition at line 460 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pg
Definition at line 473 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ph
Definition at line 485 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pi
Definition at line 497 of file generic_expression.hpp.
|
friend |
Returns (an expression evaluating to) 1 if both expressions are nonzero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_ox
Definition at line 227 of file generic_expression.hpp.
|
friend |
Returns (an expression evaluating to) 1 if expression is zero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_oz
Definition at line 263 of file generic_expression.hpp.
|
friend |
returns (an expression evaluating to) 1 if at least one expression is nonzero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_oy
Definition at line 245 of file generic_expression.hpp.
|
friend |
Can be used to achieve a smooth max.
Implementations for DM/SX/MX are hardened against overflow Implementations for DM/MX are more accurate with log1p (*)
(*) https://nhigham.com/2021/01/05/what-is-the-log-sum-exp-function/
Extra doc: https://github.com/casadi/casadi/wiki/L_1br
Definition at line 443 of file generic_matrix.hpp.
|
friend |
Scaled such that max(x) <= logsumexp(x, margin) <= max(x)+margin
Extra doc: https://github.com/casadi/casadi/wiki/L_1bs
Definition at line 451 of file generic_matrix.hpp.
If failed, returns the number of rows
Extra doc: https://github.com/casadi/casadi/wiki/L_r8
Definition at line 757 of file mx.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_or
Definition at line 134 of file generic_expression.hpp.
|
friend |
Matrix product of two matrices (x and y), adding the result to a third matrix z. The result has the same sparsity pattern as C meaning that other entries of (x*y) are ignored. The operation is equivalent to: z+mtimes(x,y).project(z.sparsity()).
Extra doc: https://github.com/casadi/casadi/wiki/L_3x
Definition at line 358 of file sparsity_interface.hpp.
|
friend |
Expand the given expression e, optionally supplying expressions contained in it at which expansion should stop.
Extra doc: https://github.com/casadi/casadi/wiki/L_rb
Definition at line 804 of file mx.hpp.
|
friend |
Expand the given expression e, optionally supplying expressions contained in it at which expansion should stop.
Extra doc: https://github.com/casadi/casadi/wiki/L_rc
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_18q
Definition at line 536 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_oo
Definition at line 86 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bm
Definition at line 383 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d9
Definition at line 1176 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d8
Definition at line 1167 of file generic_matrix.hpp.
|
friend |
This Function follows the convention of https://en.cppreference.com/w/c/numeric/math/fmod
Notably:
This is equivalent to Python's numpy.fmod and Matlab's rem.
\seealso remainder
Extra doc: https://github.com/casadi/casadi/wiki/L_pq
Definition at line 610 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bi
Definition at line 319 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bl
Definition at line 376 of file generic_matrix.hpp.
|
friend |
Do Taylor expansions until the aggregated order of a term is equal to 'order'. The aggregated order of equals
.
The argument order_contributions can denote how match each variable contributes to the aggregated order. If x=[x, y] and order_contributions=[1, 2], then the aggregated order of equals
.
Example usage
Extra doc: https://github.com/casadi/casadi/wiki/L_23s
Definition at line 834 of file matrix_decl.hpp.
|
friend |
Do Taylor expansions until the aggregated order of a term is equal to 'order'. The aggregated order of equals
.
Extra doc: https://github.com/casadi/casadi/wiki/L_23r
Definition at line 802 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3v
Definition at line 338 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3w
Definition at line 345 of file sparsity_interface.hpp.
|
friend |
Count number of nodes
Definition at line 1118 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ow
Definition at line 209 of file generic_expression.hpp.
\seealso stop_diff
Extra doc: https://github.com/casadi/casadi/wiki/L_25m
Definition at line 889 of file mx.hpp.
\seealso stop_diff
Extra doc: https://github.com/casadi/casadi/wiki/L_25n
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_44
Definition at line 428 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c6
Definition at line 539 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c5
Definition at line 534 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c4
Definition at line 529 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c7
Definition at line 544 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_190
Definition at line 630 of file matrix_decl.hpp.
|
friend |
Finds Z m-by-(m-n) such that AZ = 0 with A n-by-m with m > n
Assumes A is full rank
Inspired by Numerical Methods in Scientific Computing by Ake Bjorck
Extra doc: https://github.com/casadi/casadi/wiki/L_1cb
Definition at line 579 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3j
Definition at line 169 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ow
Definition at line 212 of file generic_expression.hpp.
|
friend |
Returns (an expression evaluating to) 1 if both expressions are nonzero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_ox
Definition at line 230 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_op
Definition at line 105 of file generic_expression.hpp.
|
friend |
Definition at line 73 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_oo
Definition at line 89 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_oq
Definition at line 121 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_or
Definition at line 137 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_os
Definition at line 152 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ov
Definition at line 197 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ot
Definition at line 167 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_ou
Definition at line 182 of file generic_expression.hpp.
|
friend |
returns (an expression evaluating to) 1 if at least one expression is nonzero and 0 otherwise
Extra doc: https://github.com/casadi/casadi/wiki/L_oy
Definition at line 248 of file generic_expression.hpp.
|
friend |
If the matrix A is fat (size1<size2), mul(A, pinv(A)) is unity.
pinv(A)' = (AA')^(-1) A
If the matrix A is slender (size1>size2), mul(pinv(A), A) is unity.
pinv(A) = (A'A)^(-1) A'
Extra doc: https://github.com/casadi/casadi/wiki/L_1ct
Definition at line 813 of file generic_matrix.hpp.
|
friend |
If the matrix A is fat (size1>size2), mul(A, pinv(A)) is unity. If the matrix A is slender (size2<size1), mul(pinv(A), A) is unity.
Extra doc: https://github.com/casadi/casadi/wiki/L_1cu
Definition at line 823 of file generic_matrix.hpp.
|
friend |
Definition at line 70 of file generic_expression.hpp.
|
friend |
ex | Scalar expression that represents a polynomial |
x | Scalar symbol that the polynomial is build up with |
Extra doc: https://github.com/casadi/casadi/wiki/L_197
Definition at line 846 of file matrix_decl.hpp.
This will only work for polynomials up to order 3 It is assumed that the roots are real.
Extra doc: https://github.com/casadi/casadi/wiki/L_198
Definition at line 857 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cc
Definition at line 586 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pp
Definition at line 586 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d4
Definition at line 1131 of file generic_matrix.hpp.
|
friend |
Debug printing
Definition at line 733 of file generic_expression.hpp.
|
friend |
nonzeros taken from an existing matrix
Extra doc: https://github.com/casadi/casadi/wiki/L_1ch
Definition at line 626 of file generic_matrix.hpp.
Referenced by casadi::GenericMatrix< MatType >::tril(), and casadi::GenericMatrix< MatType >::triu().
|
friend |
Create a piecewise constant function with n=val.size() intervals
Inputs:
t | a scalar variable (e.g. time) |
tval | vector with the discrete values of t at the interval transitions (length n-1) |
val | vector with the value of the function for each interval (length n) |
Extra doc: https://github.com/casadi/casadi/wiki/L_193
Definition at line 660 of file matrix_decl.hpp.
|
friend |
Create a piecewise linear function
Create a piecewise linear function:
Inputs:
tval vector with the the discrete values of t (monotonically increasing)
val vector with the corresponding function values (same length as tval)
Extra doc: https://github.com/casadi/casadi/wiki/L_194
Definition at line 677 of file matrix_decl.hpp.
|
friend |
More stable than the classical Gram-Schmidt, but may break down if the rows of A are nearly linearly dependent See J. Demmel: Applied Numerical Linear Algebra (algorithm 3.1.). Note that in SWIG, Q and R are returned by value.
Extra doc: https://github.com/casadi/casadi/wiki/L_18s
Definition at line 555 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_18u
Definition at line 574 of file matrix_decl.hpp.
|
friend |
See T. Davis: Direct Methods for Sparse Linear Systems
Extra doc: https://github.com/casadi/casadi/wiki/L_18t
Definition at line 564 of file matrix_decl.hpp.
|
friend |
1/2*x' A x + b' x + c
e = 0.5*bilin(A,x,x)+dot(b,x)+c
check[in] | When true (default), A is checked to be independent of x. Provided to deal with false positive dependency checks. |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d2
Definition at line 976 of file generic_matrix.hpp.
Also called: slope function
Extra doc: https://github.com/casadi/casadi/wiki/L_23p
Definition at line 742 of file matrix_decl.hpp.
|
friend |
Calculates A + 1/2 * alpha * x*y'
Extra doc: https://github.com/casadi/casadi/wiki/L_1bp
Definition at line 418 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_oq
Definition at line 118 of file generic_expression.hpp.
Also called: gate function, block function, band function, pulse function, window function
Extra doc: https://github.com/casadi/casadi/wiki/L_23n
Definition at line 710 of file matrix_decl.hpp.
|
friend |
This Function follows the convention of https://en.cppreference.com/w/c/numeric/math/remainder
Notably:
This is equivalent to Python's math.remainder. There is no equivalence in Matlab.
\seealso fmod
Extra doc: https://github.com/casadi/casadi/wiki/L_24x
Definition at line 637 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_48
Definition at line 458 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_49
Definition at line 465 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d7
Definition at line 1159 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_40
Definition at line 393 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_42
Definition at line 407 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_41
Definition at line 400 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cy
Definition at line 907 of file generic_matrix.hpp.
|
friend |
Definition at line 1104 of file generic_matrix.hpp.
|
friend |
Definition at line 1110 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1d6
Definition at line 1148 of file generic_matrix.hpp.
|
friend |
sign(x) := -1 for x<0 sign(x) := 1 for x>0, sign(0) := 0 sign(NaN) := NaN
Extra doc: https://github.com/casadi/casadi/wiki/L_po
Definition at line 574 of file generic_expression.hpp.
|
friend |
Definition at line 1123 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p3
Definition at line 317 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_pa
Definition at line 401 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bv
Definition at line 474 of file generic_matrix.hpp.
|
friend |
[in] | x | vector expression of size n |
[in] | y | scalar expression |
soc(x,y) computes [y*eye(n) x; x' y]
soc(x,y) positive semi definite <=> || x ||_2 <= y
Extra doc: https://github.com/casadi/casadi/wiki/L_1bj
Definition at line 334 of file generic_matrix.hpp.
|
friend |
The solve routine works similar to Matlab's backslash when A is square and nonsingular. The algorithm used is the following:
Note 1: If there are entries of the linear system known to be zero, these will be removed. Elements that are very small, or will evaluate to be zero, can still cause numerical errors, due to the lack of pivoting (which is not possible since cannot compare the size of entries)
Note 2: When permuting the linear system, a BLT (block lower triangular) transformation is formed. Only the permutation part of this is however used. An improvement would be to solve block-by-block if there are multiple BLT blocks.
Extra doc: https://github.com/casadi/casadi/wiki/L_1cq
Definition at line 761 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cr
Definition at line 770 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_191
Definition at line 638 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_24z
Definition at line 414 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_43
Definition at line 421 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p2
Definition at line 305 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p1
Definition at line 293 of file generic_expression.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_25l
Extra doc: https://github.com/casadi/casadi/wiki/L_25o
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cl
Definition at line 701 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cm
Definition at line 710 of file generic_matrix.hpp.
|
friend |
Substitute variables v out of the expressions vdef sequentially, as well as out of a number of other expressions piggyback
Extra doc: https://github.com/casadi/casadi/wiki/L_1cn
Definition at line 722 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_2d6
Definition at line 596 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4p
Definition at line 586 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4q
Definition at line 591 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1bq
Definition at line 429 of file generic_matrix.hpp.
|
friend |
Get all symbols on which the supplied expression depends
Extra doc: https://github.com/casadi/casadi/wiki/L_1bn
Definition at line 393 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p5
Definition at line 341 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_23y
Definition at line 875 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_p9
Definition at line 389 of file generic_expression.hpp.
|
friend |
Calculate the Taylor expansion of expression 'ex' up to order 'order' with respect to variable 'x' around the point 'a'
Example usage:
>> x
Extra doc: https://github.com/casadi/casadi/wiki/L_23q
Definition at line 789 of file matrix_decl.hpp.
|
friend |
Calculate the Taylor expansion of expression 'ex' up to order 'order' with respect to variable 'x' around the point 'a'
Example usage:
>> x
Extra doc: https://github.com/casadi/casadi/wiki/L_23q
Definition at line 785 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_op
Definition at line 102 of file generic_expression.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c1
Definition at line 514 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3y
Definition at line 365 of file sparsity_interface.hpp.
Extra doc: https://github.com/casadi/casadi/wiki/L_23o
Definition at line 725 of file matrix_decl.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_46
Definition at line 442 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c2
Definition at line 519 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_45
Definition at line 435 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1c3
Definition at line 524 of file generic_matrix.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ce
Definition at line 603 of file generic_matrix.hpp.
|
friend |
Reshapes/vectorizes the matrix such that the shape becomes (expr.numel(), 1). Columns are stacked on top of each other. Same as reshape(expr, expr.numel(), 1)
a c
b d
turns into
a
b
c
d
Extra doc: https://github.com/casadi/casadi/wiki/L_3z
Definition at line 386 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_3u
Definition at line 331 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4f
Definition at line 510 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4g
Definition at line 517 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4h
Definition at line 524 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4i
Definition at line 532 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_4j
Definition at line 540 of file sparsity_interface.hpp.
|
friend |
Alternative terminology: vertical stack, vstack, vertical append, [a;b]
vertcat(vertsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3f
Definition at line 108 of file sparsity_interface.hpp.
|
friend |
incr | Size of each group of rows |
vertcat(vertsplit(x, ...)) = x
[SX(a_0), SX(a_1), SX(a_2), SX(a_3)]
[SX([a_0, a_1]), SX([a_2, a_3])]
If the number of rows is not a multiple of incr
, the last entry returned will have a size smaller than incr
.
[DM([0, 1]), DM([2, 3]), DM(4)]
\seealso vertsplit_n
Extra doc: https://github.com/casadi/casadi/wiki/L_3k
Definition at line 204 of file sparsity_interface.hpp.
|
friend |
output_offset | List of all start rows for each group the last row group will run to the end. |
vertcat(vertsplit(x, ...)) = x
Extra doc: https://github.com/casadi/casadi/wiki/L_3i
Definition at line 162 of file sparsity_interface.hpp.
|
friend |
n | Number of groups of rows |
Will error when the number of rows is not a multiple of n
vertcat(vertsplit(x, ...)) = x
\seealso vertsplit
Extra doc: https://github.com/casadi/casadi/wiki/L_278
Definition at line 219 of file sparsity_interface.hpp.
|
friend |
Extra doc: https://github.com/casadi/casadi/wiki/L_1cz
Definition at line 930 of file generic_matrix.hpp.