WaveBlocksND
|
Adaptor which accepts an Eigen::Matrix and emulates some behavior of a std::vector. More...
#include <adaptors.hpp>
Public Types | |
template<class I > | |
using | type = MatrixToGrid< Matrix > |
Public Member Functions | |
size_t | size () const |
MatrixToGrid (const Matrix &matrix) | |
grid_element_type | operator[] (int i) const |
MatrixToGridIterator< Matrix > | begin () const |
MatrixToGridIterator< Matrix > | end () const |
Private Types | |
using | grid_element_type = GVector< typename Matrix::Scalar, N > |
Private Attributes | |
const Matrix & | matrix |
Static Private Attributes | |
static const int | N = Matrix::RowsAtCompileTime |
static const int | M = Matrix::ColsAtCompileTime |
Adaptor which accepts an Eigen::Matrix and emulates some behavior of a std::vector.
In particular allows to use for:in loops to iterate over each column of the matrix as well as random accesses to each column.
Matrix | Eigen::Matrix to which to adapt |
|
private |
using waveblocks::utilities::MatrixToGrid< Matrix >::type = MatrixToGrid<Matrix> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticprivate |
|
private |
|
staticprivate |