26 #ifndef CASADI_SUBREF_HPP
27 #define CASADI_SUBREF_HPP
29 #include "mx_node.hpp"
53 int eval_gen(
const T*
const* arg, T*
const* res, casadi_int* iw, T* w)
const;
56 int eval(
const double** arg,
double** res, casadi_int* iw,
double* w)
const override;
59 int eval_sx(
const SXElem** arg,
SXElem** res, casadi_int* iw,
SXElem* w)
const override;
64 void eval_mx(
const std::vector<MX>& arg, std::vector<MX>& res)
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;
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;
Helper class for C code generation.
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.
~SubRef() override
Destructor.
unsigned long long bvec_t
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.