26 #ifndef CASADI_CONVEXIFY_HPP
27 #define CASADI_CONVEXIFY_HPP
29 #include "mx_node.hpp"
57 int eval_gen(
const T** arg, T** res, casadi_int* iw, T* w)
const;
60 int eval(
const double** arg,
double** res, casadi_int* iw,
double* w)
const override;
65 void eval_mx(
const std::vector<MX>& arg, std::vector<MX>& res)
const override;
71 const std::vector<casadi_int>& arg,
72 const std::vector<casadi_int>& res,
73 const std::vector<bool>& arg_is_ref,
74 std::vector<bool>& res_is_ref)
const override;
79 size_t sz_iw()
const override;
84 size_t sz_w()
const override;
89 std::string disp(
const std::vector<std::string>& arg)
const override;
109 const Dict& opts=
Dict(),
bool inplace=
true);
113 const std::string& Hin,
const std::string& Hout,
114 const std::string& iw,
const std::string& w);
Helper class for C code generation.
Convexify a symmetric matrix.
~Convexify() override
Destructor.
casadi_int op() const override
Get the operation.
int eval_gen(const T **arg, T **res, casadi_int *iw, T *w) const
Evaluate the function (template)
Helper class for Serialization.
Node class for MX objects.
Helper class for Serialization.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.