Class MatrixPiler
Defined in File Piler.h
Class Documentation
- 
class MatrixPiler
 The MatrixPiler class implements real-time safe matrix/vector piling.
Public Functions
- 
inline MatrixPiler(const int cols = 0)
 MatrixPiler constructor, the matrix starts with 0 rows.
- Parameters
 cols – number of columns
- 
inline void reset()
 reset the number of rows of the matrix to 0
- 
inline void reset(const int cols)
 reset the number of rows of the matrix to 0 and set new number of columns
- Parameters
 cols – new nnumber of columns
- 
template<typename Derived>
inline void pile(const Eigen::MatrixBase<Derived> &matrix) pile a new matrix
- Parameters
 matrix – to pile
- 
template<typename Derived>
inline void set(const Eigen::MatrixBase<Derived> &matrix) set reset the matrix and initialize with new matrix
- Parameters
 matrix – for initialization
- 
inline Eigen::Block<Eigen::MatrixXd> generate_and_get()
 generate_and_get
- Returns
 the actual matrix
- 
inline int cols() const
 cols
- Returns
 number of current columns
- 
inline int rows() const
 rows
- Returns
 number of current rows
- 
inline double &operator[](const int i)
 operator [] to index vector
- Parameters
 i – index
- Returns
 value at i
- 
inline double &operator()(const int i, const int j)
 operator () to index matrix
- Parameters
 i – row
j – column
- Returns
 value at (i,j)
- 
inline MatrixPiler(const int cols = 0)