26 #ifndef CASADI_ASSERTION_HPP
27 #define CASADI_ASSERTION_HPP
29 #include "mx_node.hpp"
45 Assertion(
const MX& x,
const MX& y,
const std::string & fail_message);
53 void eval_mx(
const std::vector<MX>& arg, std::vector<MX>& res)
const override;
58 void ad_forward(
const std::vector<std::vector<MX> >& fseed,
59 std::vector<std::vector<MX> >& fsens)
const override;
64 void ad_reverse(
const std::vector<std::vector<MX> >& aseed,
65 std::vector<std::vector<MX> >& asens)
const override;
68 int eval(
const double** arg,
double** res, casadi_int* iw,
double* w)
const override;
71 int eval_sx(
const SXElem** arg,
SXElem** res, casadi_int* iw,
SXElem* w)
const override;
76 int sp_forward(
const bvec_t** arg,
bvec_t** res, casadi_int* iw,
bvec_t* w)
const override;
87 const std::vector<casadi_int>& arg,
88 const std::vector<casadi_int>& res,
89 const std::vector<bool>& arg_is_ref,
90 std::vector<bool>& res_is_ref)
const override;
95 std::string disp(
const std::vector<std::string>& arg)
const override;
122 std::string fail_message_;
casadi_int op() const override
Get the operation.
~Assertion() override
Destructor.
casadi_int n_inplace() const override
Can the operation be performed inplace (i.e. overwrite the result)
static MXNode * deserialize(DeserializingStream &s)
Deserialize without type information.
Helper class for C code generation.
Helper class for Serialization.
Node class for MX objects.
The basic scalar symbolic class of CasADi.
Helper class for Serialization.
unsigned long long bvec_t