1 #ifndef BIORBD_UTILS_VECTOR_H
2 #define BIORBD_UTILS_VECTOR_H
4 #include "biorbdConfig.h"
6 #include "Utils/Scalar.h"
16 class BIORBD_API Vector
18 class BIORBD_API
Vector :
public RigidBodyDynamics::Math::VectorNd
46 const RigidBodyDynamics::Math::VectorNd& other);
56 #ifdef BIORBD_USE_EIGEN3_MATH
57 template<
typename OtherDerived>
Vector(
const Eigen::MatrixBase<OtherDerived>& other) :
62 Eigen::VectorXd(other){}
65 #ifdef BIORBD_USE_CASADI_MATH
71 const casadi::MX& other);
78 const RBDLCasadiMath::MX_Xd_SubMatrix& other);
87 biorbd::utils::Scalar norm(
89 bool skipRoot =
false)
const;
99 bool skipRoot =
false);
108 #ifdef BIORBD_USE_EIGEN3_MATH
109 template<
typename OtherDerived>
115 this->Eigen::VectorXd::operator=(other);
119 #ifdef BIORBD_USE_CASADI_MATH
125 const RBDLCasadiMath::MX_Xd_SubMatrix& other);
132 const casadi::MX& other);
140 #endif // BIORBD_UTILS_VECTOR_H