bug #231: initial implementation of STL iterators for dense expressions

This commit is contained in:
Gael Guennebaud
2018-10-01 23:21:37 +02:00
parent 2088c0897f
commit b0c66adfb1
6 changed files with 379 additions and 0 deletions

View File

@@ -572,6 +572,17 @@ template<typename Derived> class DenseBase
}
EIGEN_DEVICE_FUNC void reverseInPlace();
inline DenseStlIterator<Derived> begin();
inline DenseStlIterator<const Derived> begin() const;
inline DenseStlIterator<const Derived> cbegin() const;
inline DenseStlIterator<Derived> end();
inline DenseStlIterator<const Derived> end() const;
inline DenseStlIterator<const Derived> cend() const;
inline ColsProxy<Derived> allCols();
inline ColsProxy<const Derived> allCols() const;
inline RowsProxy<Derived> allRows();
inline RowsProxy<const Derived> allRows() const;
#define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::DenseBase
#define EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
#define EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(COND)