Biorbd Release_1.13.0
Loading...
Searching...
No Matches
Matrix.cpp
1#define BIORBD_API_EXPORTS
2#include "Utils/Matrix.h"
3
4#include "Utils/Vector.h"
5
6using namespace BIORBD_NAMESPACE;
7
8utils::Matrix::Matrix() : RigidBodyDynamics::Math::MatrixNd() {}
9
10#ifdef BIORBD_USE_CASADI_MATH
11
13 : RigidBodyDynamics::Math::MatrixNd(v) {}
14
15utils::Matrix::Matrix(const RigidBodyDynamics::Math::MatrixNd &v)
16 : RigidBodyDynamics::Math::MatrixNd(v) {}
17
18utils::Matrix::Matrix(const RBDLCasadiMath::MX_Xd_SubMatrix &m)
19 : RigidBodyDynamics::Math::VectorNd(m) {}
20
21void utils::Matrix::operator=(const utils::Matrix &other) {
22 this->MX_Xd_dynamic::operator=(other);
23}
24
25void utils::Matrix::operator=(const RBDLCasadiMath::MX_Xd_SubMatrix &other) {
26 this->MX_Xd_dynamic::operator=(other);
27}
28
29#endif
30
31utils::Matrix::Matrix(size_t nbRows, size_t nbCols)
32 : RigidBodyDynamics::Math::MatrixNd(
33 static_cast<unsigned int>(nbRows),
34 static_cast<unsigned int>(nbCols)) {}
A wrapper for the Eigen::MatrixXd.
Definition Matrix.h:18
Matrix()
Construct matrix.
Definition Matrix.cpp:8