Biorbd Release_1.13.0
Loading...
Searching...
No Matches
Matrix2d.h
1#ifndef BIORBD_UTILS_MATRIX2D_H
2#define BIORBD_UTILS_MATRIX2D_H
3
4#include "biorbdConfig.h"
5
6#include "Utils/Scalar.h"
7#include "rbdl/rbdl_math.h"
8
9namespace BIORBD_NAMESPACE {
10namespace utils {
11class String;
12
16#ifdef SWIG
17class BIORBD_API Matrix2d
18#else
19class BIORBD_API Matrix2d : public RigidBodyDynamics::Math::Matrix2d
20#endif
21{
22 public:
26 Matrix2d();
27
28#ifdef BIORBD_USE_EIGEN3_MATH
33 template <typename OtherDerived>
34 Matrix2d(const Eigen::MatrixBase<OtherDerived>& other)
35 : RigidBodyDynamics::Math::Matrix2d(other) {}
36#endif
37
38#ifdef BIORBD_USE_CASADI_MATH
39
44 Matrix2d(const RBDLCasadiMath::MX_Xd_static<2, 2>& other);
45
50 Matrix2d(const RBDLCasadiMath::MX_Xd_SubMatrix& other);
51
52#endif
53
54#ifndef SWIG
55
56#ifdef BIORBD_USE_EIGEN3_MATH
61 template <typename OtherDerived>
62 Matrix2d& operator=(const Eigen::MatrixBase<OtherDerived>& other) {
63 this->Eigen::Matrix2d::operator=(other);
64 return *this;
65 }
66#endif
67#ifdef BIORBD_USE_CASADI_MATH
72 void operator=(const RBDLCasadiMath::MX_Xd_static<2, 2>& other);
73
78 void operator=(const RBDLCasadiMath::MX_Xd_SubMatrix& other);
79#endif
80
81#endif
82};
83
84} // namespace utils
85} // namespace BIORBD_NAMESPACE
86
87#endif // BIORBD_UTILS_MATRIX2D_H
A wrapper for the Eigen::MatrixXd.
Definition Matrix2d.h:21
Matrix2d()
Construct matrix.
Definition Matrix2d.cpp:9
Wrapper around the std::string class with augmented functionality.
Definition String.h:18