26 #ifndef CASADI_SUBASSIGN_HPP
27 #define CASADI_SUBASSIGN_HPP
29 #include "mx_node.hpp"
52 int eval_gen(
const T*
const* arg, T*
const* res, casadi_int* iw, T* w)
const;
55 int eval(
const double** arg,
double** res, casadi_int* iw,
double* w)
const override;
58 int eval_sx(
const SXElem** arg,
SXElem** res, casadi_int* iw,
SXElem* w)
const override;
63 void eval_mx(
const std::vector<MX>& arg, std::vector<MX>& res,
64 const std::vector<bool>& unique={})
const override;
69 void ad_forward(
const std::vector<std::vector<MX> >& fseed,
70 std::vector<std::vector<MX> >& fsens)
const override;
75 void ad_reverse(
const std::vector<std::vector<MX> >& aseed,
76 std::vector<std::vector<MX> >& asens)
const override;
81 int sp_forward(
const bvec_t** arg,
bvec_t** res, casadi_int* iw,
bvec_t* w)
const override;
91 std::string disp(
const std::vector<std::string>& arg)
const override;
96 void generate(CodeGenerator& g,
97 const std::vector<casadi_int>& arg,
98 const std::vector<casadi_int>& res,
99 const std::vector<bool>& arg_is_ref,
100 std::vector<bool>& res_is_ref)
const override;
108 Dict info()
const override;
Node class for MX objects.
The basic scalar symbolic class of CasADi.
Class representing a Slice.
Reference to a submatrix.
casadi_int op() const override
Get the operation.
~SubAssign() override
Destructor.
unsigned long long bvec_t
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.