12template <
unsigned int nrows,
unsigned int ncols>
16 return casadi::MX::mtimes(me, other);
18template <
unsigned int nrows,
unsigned int ncols>
21 const double& other) {
22 return casadi::MX::mtimes(me, other);
24template <
unsigned int nrows,
unsigned int ncols>
29 return casadi::MX::mtimes(me, other);
31template <
unsigned int nrows,
unsigned int ncols>
36 return casadi::MX::mtimes(me, other);
39template <
unsigned int nrows,
unsigned int ncols>
44 return out.casadi::MX::operator+=(other);
46template <
unsigned int nrows,
unsigned int ncols>
51 return out.casadi::MX::operator+=(other);
56 return me.casadi::MX::operator+=(other);
60 const double& other) {
61 return me.casadi::MX::operator+=(other);
63template <
unsigned int nrows,
unsigned int ncols>
68 return out.casadi::MX::operator+=(me);
71template <
unsigned int nrows,
unsigned int ncols>
74 return other.casadi::MX::operator-();
76template <
unsigned int nrows,
unsigned int ncols>
81 return out.casadi::MX::operator-=(other);
83template <
unsigned int nrows,
unsigned int ncols>
88 return out.casadi::MX::operator-=(other);
90template <
unsigned int nrows,
unsigned int ncols>
95 return out.casadi::MX::operator-=(me);
101 return MX_Xd_SubMatrix::times(me, other);
106 return MX_Xd_SubMatrix::mtimes(me, other);
113 result.MX_Xd_SubMatrix::operator/=(scalar);
118 const double& scalar) {
120 result.MX_Xd_SubMatrix::operator/=(scalar);
127 return casadi::MX::mtimes(m1, m2);
132 return casadi::MX::mtimes(m1, m2);
137 return casadi::MX::mtimes(m1, m2);
139template <
unsigned int nrows,
unsigned int ncols>
143 return casadi::MX::mtimes(m1, m2);
145template <
unsigned int nrows,
unsigned int ncols>
149 return casadi::MX::mtimes(m1, m2);
151template <
unsigned int nrows,
unsigned int ncols>
155 return casadi::MX::mtimes(m1, m2);
157template <
unsigned int nrows,
unsigned int ncols>
161 return casadi::MX::mtimes(m1, m2);
165 for (
unsigned int i=0; i<mat.rows(); ++i){
166 for (
unsigned int j=0; j<mat.columns(); ++j){
167 mat(i, j) = scalar / mat(i, j);
173 for (
unsigned int i=0; i<mat.
rows(); ++i){
174 for (
unsigned int j=0; j<mat.columns(); ++j){
175 mat(i, j) = scalar / mat(i, j);
182 return out.casadi::MX::operator/=(mat(0, 0));
184template <
unsigned int nrows,
unsigned int ncols>
186 for (
unsigned int i=0; i<nrows; ++i){
187 for (
unsigned int j=0; j<ncols; ++j){
188 mat(i, j) = scalar / mat(i, j);
195template <
unsigned int nrows,
unsigned int ncols>
201 return out.casadi::MX::operator+=(other);
205 return me.casadi::MX::operator-();
209 return me.casadi::MX::operator-();
214 return me.casadi::SubMatrix<casadi::MX, casadi::Slice, casadi::Slice>::operator-=(scalar);
219 return me.casadi::MX::operator-=(other);
226 return out.casadi::MX::operator+=(other);
233 return out.casadi::MX::operator+=(other);
240 return out.casadi::MX::operator+=(me);
247 return out.casadi::MX::operator+=(other);
253 return me.casadi::SubMatrix<casadi::MX, casadi::Slice, casadi::Slice>::operator+=(other);
256template <
unsigned int nrows,
unsigned int ncols>
262 return out.casadi::MX::operator-=(other);
269 return out.casadi::MX::operator-=(other);
276 return out.casadi::MX::operator-=(other);
283 return out.casadi::MX::operator+=(me);
290 return out.casadi::MX::operator-=(other);
297 return out.casadi::MX::operator-=(other);
305 return casadi::MX::times(me, other);
311 return casadi::MX::times(me, other);
318 return out.casadi::MX::operator+=(other);
323 return other.casadi::MX::operator-();
329 return out.casadi::MX::operator+=(other);
366inline bool isnan(
const casadi::MX& x){
367 return !x.is_regular();
370template <
unsigned int nrows,
unsigned int ncols>
372 return casadi::MX::abs(m);
374template <
unsigned int nrows,
unsigned int ncols>
376 return casadi::MX::abs(m);
379 return casadi::MX::abs(m);
382template <
unsigned int nrows,
unsigned int ncols>
384 return casadi::MX::mpower(m, exponent);
386template <
unsigned int nrows,
unsigned int ncols>
388 return casadi::MX::mpower(m, exponent);
390template <
unsigned int nrows,
unsigned int ncols>
392 return casadi::MX::mpower(m, exponent);
395 return casadi::MX::mpower(m, exponent);
398 return casadi::MX::mpower(m, exponent);
401 return casadi::MX::mpower(m, exponent);
RBDLCasadiMath::MX_Xd_scalar exp(const RBDLCasadiMath::MX_Xd_scalar &x)
unsigned int rows() const
MX_Xd_static< nrows, ncols > operator*(const MX_Xd_static< nrows, ncols > &me, const MX_Xd_scalar &other)
MX_Xd_static< nrows, ncols > operator+(const MX_Xd_static< nrows, ncols > &me, const MX_Xd_dynamic &other)
MX_Xd_static< nrows, ncols > operator-(const MX_Xd_static< nrows, ncols > &other)
MX_Xd_SubMatrix operator/(const MX_Xd_SubMatrix &me, const MX_Xd_SubMatrix &scalar)
bool isnan(const casadi::MX &x)
MX_Xd_dynamic fabs(const MX_Xd_dynamic &m)
MX_Xd_static< nrows, ncols > pow(const MX_Xd_static< nrows, ncols > &m, int exponent)
MX_Xd_scalar sqrt(const MX_Xd_scalar &x)
MX_Xd_scalar acos(const MX_Xd_scalar &x)
MX_Xd_scalar atan2(const MX_Xd_scalar &x, const MX_Xd_scalar &y)
MX_Xd_scalar cos(const MX_Xd_scalar &x)
MX_Xd_scalar tan(const MX_Xd_scalar &x)
MX_Xd_scalar tanh(const MX_Xd_scalar &x)
MX_Xd_scalar sin(const MX_Xd_scalar &x)
MX_Xd_scalar asin(const MX_Xd_scalar &x)