Biorbd
|
Wrapper of the Eigen VectorXd. More...
#include <Vector.h>
Public Member Functions | |
Vector () | |
Construct vector. | |
Vector (unsigned int size) | |
Construct vector of dimension size. More... | |
Vector (const biorbd::utils::Vector &other) | |
Construct vector from Casadi vector. More... | |
Vector (const RigidBodyDynamics::Math::VectorNd &other) | |
Construct vector from Casadi vector. More... | |
Vector (const biorbd::utils::Vector3d &other) | |
Construct vector from Casadi matrix. More... | |
biorbd::utils::Scalar | norm (unsigned int p=2, bool skipRoot=false) const |
Return the Euclidian p-norm of the vector. More... | |
biorbd::utils::Vector | normGradient (unsigned int p=2, bool skipRoot=false) |
Return the gradient of the p-norm. More... | |
void | operator= (const biorbd::utils::Vector &other) |
operator= For submatrices More... | |
biorbd::utils::Vector::Vector | ( | unsigned int | size | ) |
Construct vector of dimension size.
size | The length of the vector |
Definition at line 14 of file Vector.cpp.
biorbd::utils::Vector::Vector | ( | const biorbd::utils::Vector & | other | ) |
Construct vector from Casadi vector.
other | The vector to copy |
Definition at line 21 of file Vector.cpp.
biorbd::utils::Vector::Vector | ( | const RigidBodyDynamics::Math::VectorNd & | other | ) |
Construct vector from Casadi vector.
other | The vector to copy |
Definition at line 28 of file Vector.cpp.
biorbd::utils::Vector::Vector | ( | const biorbd::utils::Vector3d & | other | ) |
Construct vector from Casadi matrix.
other | The vector to copy |
Definition at line 35 of file Vector.cpp.
biorbd::utils::Scalar biorbd::utils::Vector::norm | ( | unsigned int | 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 59 of file Vector.cpp.
biorbd::utils::Vector biorbd::utils::Vector::normGradient | ( | unsigned int | 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() |
Definition at line 82 of file Vector.cpp.
void biorbd::utils::Vector::operator= | ( | const biorbd::utils::Vector & | other | ) |
operator= For submatrices
other | The vector to copy |
Definition at line 105 of file Vector.cpp.