Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
Matrix.h
1
#ifndef BIORBD_UTILS_MATRIX_H
2
#define BIORBD_UTILS_MATRIX_H
3
4
#include "biorbdConfig.h"
5
6
#include "rbdl/rbdl_math.h"
7
8
namespace
BIORBD_NAMESPACE {
9
namespace
utils {
13
#ifdef SWIG
14
class
BIORBD_API
Matrix
15
#else
16
class BIORBD_API
Matrix
:
public
RigidBodyDynamics::Math::MatrixNd
17
#endif
18
{
19
public
:
23
Matrix
();
24
25
#ifdef BIORBD_USE_EIGEN3_MATH
30
template
<
typename
OtherDerived>
31
Matrix
(
const
Eigen::MatrixBase<OtherDerived>& other)
32
: Eigen::MatrixXd(other) {}
33
#endif
34
#ifdef BIORBD_USE_CASADI_MATH
35
40
Matrix
(
const
Matrix
& other);
41
46
Matrix
(
const
RigidBodyDynamics::Math::MatrixNd& other);
47
52
Matrix
(
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
53
54
#endif
55
61
Matrix
(
size_t
nbRows,
size_t
nbCols);
62
63
#ifndef SWIG
64
65
#ifdef BIORBD_USE_EIGEN3_MATH
70
template
<
typename
OtherDerived>
71
Matrix
& operator=(
const
Eigen::MatrixBase<OtherDerived>& other) {
72
this->Eigen::MatrixXd::operator=(other);
73
return
*
this
;
74
}
75
#endif
76
#ifdef BIORBD_USE_CASADI_MATH
77
82
void
operator=(
const
Matrix
& other);
83
88
void
operator=(
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
89
#endif
90
91
#endif
92
};
93
94
}
// namespace utils
95
}
// namespace BIORBD_NAMESPACE
96
97
#endif
// BIORBD_UTILS_MATRIX_H
BIORBD_NAMESPACE::utils::Matrix
A wrapper for the Eigen::MatrixXd.
Definition
Matrix.h:18
BIORBD_NAMESPACE::utils::Matrix::Matrix
Matrix()
Construct matrix.
Definition
Matrix.cpp:8
include
Utils
Matrix.h
Generated by
1.18.0