#include <VectorEigen.hpp>
Eigen vector wrapper class
Public Member Functions | |
VectorEigen (int size=0) | |
VectorEigen (const VectorEigen &v) | |
VectorEigen (const VectorDouble &v) | |
VectorEigen (const Eigen::VectorXd &v) | |
VectorEigen & | operator= (const VectorEigen &r) |
virtual | ~VectorEigen () |
void | setValue (int i, double value, bool flagCheck=false) |
Set the value at a given position in the vector. More... | |
double | getValue (int i, bool flagCheck=false) const |
Get the value at a given position. More... | |
VectorDouble | getValues () const |
Get all values in a VectorDouble. More... | |
void | fill (double value) |
Set all the values of the Vector at once. More... | |
int | size () const |
void | resize (int n) |
bool | empty () const |
const Eigen::VectorXd & | getVector () const |
Eigen::VectorXd & | getVector () |
Eigen::Map< const Eigen::VectorXd > | getMap () const |
Eigen::Map< Eigen::VectorXd > | getMap () |
Static Public Member Functions | |
static double | maximum (const std::vector< Eigen::VectorXd > &vect) |
static void | simulateGaussianInPlace (Eigen::VectorXd &vect, double mean=0, double var=1) |
static void | fill (Eigen::VectorXd &vect, double val=0.) |
static void | addMultiplyConstantInPlace (double val, const Eigen::VectorXd &in, Eigen::VectorXd &res, int iad) |
static void | addMultiplyVectVectInPlace (const Eigen::VectorXd &in1, const Eigen::VectorXd &in2, Eigen::VectorXd &res, int iad) |
static void | addInPlace (const Eigen::VectorXd &in, Eigen::VectorXd &res, int iad) |
static VectorDouble | copyIntoVD (const Eigen::VectorXd &in) |
static double | innerProduct (const std::vector< Eigen::VectorXd > &in1, const std::vector< Eigen::VectorXd > &in2) |
static void | fill (std::vector< Eigen::VectorXd > &vect, double val=0.) |
static void | copy (const Eigen::VectorXd &in, Eigen::VectorXd &dest) |
static void | copy (const Eigen::VectorXd &in, Eigen::Map< Eigen::VectorXd > &dest) |
static void | copy (const Eigen::VectorXd &in, VectorDouble &dest) |
static void | linearCombinationVVDInPlace (double coeff1, const std::vector< Eigen::VectorXd > &in1, double coeff2, const std::vector< Eigen::VectorXd > &in2, std::vector< Eigen::VectorXd > &res) |
static void | substractInPlace (const std::vector< Eigen::VectorXd > &in1, const std::vector< Eigen::VectorXd > &in2, std::vector< Eigen::VectorXd > &res) |
static void | copy (const std::vector< Eigen::VectorXd > &in, std::vector< Eigen::VectorXd > &dest) |
static void | addInPlace (const Eigen::VectorXd &in, Eigen::VectorXd &out) |
static void | divideInPlace (const Eigen::VectorXd &in, Eigen::VectorXd &out) |
static void | addInPlace (const Eigen::VectorXd &t1, const Eigen::VectorXd &t2, Eigen::VectorXd &res) |
static void | addInPlace (const std::vector< Eigen::VectorXd > &t1, const std::vector< Eigen::VectorXd > &t2, std::vector< Eigen::VectorXd > &res) |
static void | multiplyConstant (Eigen::VectorXd vect, double val=1.) |
static Eigen::VectorXd | flatten (const std::vector< Eigen::VectorXd > &vvd) |
static void | flattenInPlace (const std::vector< Eigen::VectorXd > &vvd, Eigen::VectorXd &vd) |
static std::vector< Eigen::VectorXd > | unflatten (const Eigen::VectorXd &vd, const VectorInt &sizes) |
static void | unflattenInPlace (const Eigen::VectorXd &vd, std::vector< Eigen::VectorXd > &vvd) |
VectorEigen::VectorEigen | ( | int | size = 0 | ) |
VectorEigen::VectorEigen | ( | const VectorEigen & | v | ) |
VectorEigen::VectorEigen | ( | const VectorDouble & | v | ) |
VectorEigen::VectorEigen | ( | const Eigen::VectorXd & | v | ) |
|
virtual |
|
static |
|
static |
|
static |
Get underlying Eigen vector
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
void VectorEigen::fill | ( | double | value | ) |
Set all the values of the Vector at once.
Set all the values of the Vector at once
value | value to be filled |
|
static |
|
static |
|
static |
Method which flattens a std::vector<Eigen::VectorXd> into an Eigen::VectorXd
vvd | Input std::vector<Eigen::VectorXd> |
|
static |
|
inline |
Get map to underlying Eigen vector
|
inline |
Get map to underlying Eigen vector
double VectorEigen::getValue | ( | int | i, |
bool | flagCheck = false |
||
) | const |
Get the value at a given position.
Get the value at a given position
i | index position |
flagCheck | true to check index position consistency |
VectorDouble VectorEigen::getValues | ( | ) | const |
Get all values in a VectorDouble.
Get all values in a VectorDouble
|
inline |
Get underlying Eigen vector
|
inline |
|
static |
|
static |
|
static |
|
static |
VectorEigen & VectorEigen::operator= | ( | const VectorEigen & | r | ) |
|
inline |
void VectorEigen::setValue | ( | int | i, |
double | value, | ||
bool | flagCheck = false |
||
) |
Set the value at a given position in the vector.
Set the value at a given position in the vector
i | index position |
value | new value |
flagCheck | true to check index position consistency |
|
static |
|
inline |
|
static |
|
static |
|
static |