1.4.0
CCC
 
VectorEigen Class Reference

#include <VectorEigen.hpp>

Detailed Description

Eigen vector wrapper class

Public Member Functions

 VectorEigen (int size=0)
 
 VectorEigen (const VectorEigen &v)
 
 VectorEigen (const VectorDouble &v)
 
 VectorEigen (const Eigen::VectorXd &v)
 
VectorEigenoperator= (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...
 
const Eigen::VectorXd & getVector () const
 
Eigen::VectorXd & getVector ()
 

Constructor & Destructor Documentation

◆ VectorEigen() [1/4]

VectorEigen::VectorEigen ( int  size = 0)

◆ VectorEigen() [2/4]

VectorEigen::VectorEigen ( const VectorEigen v)

◆ VectorEigen() [3/4]

VectorEigen::VectorEigen ( const VectorDouble v)

◆ VectorEigen() [4/4]

VectorEigen::VectorEigen ( const Eigen::VectorXd &  v)

◆ ~VectorEigen()

VectorEigen::~VectorEigen ( )
virtual

Member Function Documentation

◆ fill()

void VectorEigen::fill ( double  value)

Set all the values of the Vector at once.

Set all the values of the Vector at once

Parameters
valuevalue to be filled

◆ getValue()

double VectorEigen::getValue ( int  i,
bool  flagCheck = false 
) const

Get the value at a given position.

Get the value at a given position

Parameters
iindex position
flagChecktrue to check index position consistency
Returns
the value

◆ getValues()

VectorDouble VectorEigen::getValues ( ) const

Get all values in a VectorDouble.

Get all values in a VectorDouble

Returns
VectorDouble

◆ getVector() [1/2]

Eigen::VectorXd& VectorEigen::getVector ( )
inline

Get underlying Eigen vector

◆ getVector() [2/2]

const Eigen::VectorXd& VectorEigen::getVector ( ) const
inline

Get underlying Eigen vector

◆ operator=()

VectorEigen & VectorEigen::operator= ( const VectorEigen r)

◆ setValue()

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

Parameters
iindex position
valuenew value
flagChecktrue to check index position consistency

The documentation for this class was generated from the following files: