SX/SXaddition.cc

Output:

(x+y)
See also
SX casadi::SX::operator+(const SX &, const SX &);
Matrix< Scalar > operator+() const
Matrix< SXElem > SX
Definition: sx_fwd.hpp:32
#include "casadi/casadi.hpp"
#include <iostream>
using namespace casadi;
int main(int argc, char *argv[])
{
SX x = SX::sym("x");
SX y = SX::sym("y");
std::cout << x+y << std::endl;
}
static Matrix< Scalar > sym(const std::string &name, casadi_int nrow=1, casadi_int ncol=1)
Create an nrow-by-ncol symbolic primitive.
The casadi namespace.