AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_UTILS_STORAGE_EIGEN_HEADER_FILE
2 #define AI_TOOLBOX_UTILS_STORAGE_EIGEN_HEADER_FILE
131 template <
typename V>
132 void push_back(
const Eigen::MatrixBase<V> & row);
155 template <
typename V>
157 const auto currRows =
matrix.rows();
159 if (storage_.rows() == currRows)
160 storage_.conservativeResize(currRows * 2, Eigen::NoChange);
162 storage_.row(currRows) = row;
164 new (&
matrix) Eigen::Ref<Matrix2D>(storage_.topRows(currRows + 1));