|
Biorbd Release_1.13.0
|
Wrapper of the Eigen VectorXd. More...
#include <Vector.h>
Public Member Functions | |
| Vector () | |
| Construct vector. | |
| Vector (size_t size) | |
| Construct vector of dimension size. | |
| Vector (const Vector &other) | |
| Construct vector from Casadi vector. | |
| Vector (const RigidBodyDynamics::Math::VectorNd &other) | |
| Construct vector from Casadi vector. | |
| Vector (const Vector3d &other) | |
| Construct vector from Casadi matrix. | |
| Scalar | norm (size_t p=2, bool skipRoot=false) const |
| Return the Euclidian p-norm of the vector. | |
| Vector | normGradient (size_t p=2, bool skipRoot=false) |
| Return the gradient of the p-norm. | |
| void | operator= (const Vector &other) |
| operator= For submatrices | |
| utils::Vector::Vector | ( | ) |
Construct vector.
Definition at line 10 of file Vector.cpp.
| utils::Vector::Vector | ( | size_t | size | ) |
Construct vector of dimension size.
| size | The length of the vector |
Definition at line 12 of file Vector.cpp.
| utils::Vector::Vector | ( | const Vector & | other | ) |
Construct vector from Casadi vector.
| other | The vector to copy |
Definition at line 15 of file Vector.cpp.
| utils::Vector::Vector | ( | const RigidBodyDynamics::Math::VectorNd & | other | ) |
Construct vector from Casadi vector.
| other | The vector to copy |
Definition at line 18 of file Vector.cpp.
| utils::Vector::Vector | ( | const Vector3d & | other | ) |
Construct vector from Casadi matrix.
| other | The vector to copy |
Definition at line 21 of file Vector.cpp.
| utils::Scalar utils::Vector::norm | ( | size_t | p = 2, |
| bool | skipRoot = false ) const |
Return the Euclidian p-norm of the vector.
| p | the factor of the p-norm |
| skipRoot | To perform or not the sqrt_p() |
Definition at line 34 of file Vector.cpp.
| utils::Vector utils::Vector::normGradient | ( | size_t | p = 2, |
| bool | skipRoot = false ) |
Return the gradient of the p-norm.
| p | the factor of the p-norm |
| skipRoot | To perform or not the sqrt_p(), that is the gradient of \(\sum |x_i|^p\) if true or of \((\sum |x_i|^p)^{1/p}\) if false |
Definition at line 57 of file Vector.cpp.
| void utils::Vector::operator= | ( | const Vector & | other | ) |
operator= For submatrices
| other | The vector to copy |
Definition at line 83 of file Vector.cpp.