diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-10-05 23:11:21 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-10-05 23:11:21 +0200 |
commit | d92f004ab76cdf961b9279e228d9eb7349a4d8db (patch) | |
tree | 0e49c01b0491ea8e69886d001966ab9bbea3ed01 /Eigen/src/Core/StlIterators.h | |
parent | 91613bf2c2132fc4b45182146f9367398b6167f0 (diff) |
Simplify API by removing allCols/allRows and reusing rowwise/colwise to define iterators over rows/columns
Diffstat (limited to 'Eigen/src/Core/StlIterators.h')
-rw-r--r-- | Eigen/src/Core/StlIterators.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Eigen/src/Core/StlIterators.h b/Eigen/src/Core/StlIterators.h index 8713964bd..24eef1269 100644 --- a/Eigen/src/Core/StlIterators.h +++ b/Eigen/src/Core/StlIterators.h @@ -228,39 +228,4 @@ inline typename DenseBase<Derived>::const_iterator DenseBase<Derived>::cend() co return const_iterator(derived(), size()); } -template<typename XprType, DirectionType Direction> -class SubVectorsProxy -{ -public: - typedef internal::subvector_stl_iterator<XprType, Direction> iterator; - typedef internal::subvector_stl_iterator<const XprType, Direction> const_iterator; - - SubVectorsProxy(XprType& xpr) : m_xpr(xpr) {} - - iterator begin() const { return iterator (m_xpr, 0); } - const_iterator cbegin() const { return const_iterator(m_xpr, 0); } - - iterator end() const { return iterator (m_xpr, m_xpr.template subVectors<Direction>()); } - const_iterator cend() const { return const_iterator(m_xpr, m_xpr.template subVectors<Direction>()); } - -protected: - XprType& m_xpr; -}; - -template<typename Derived> -SubVectorsProxy<Derived,Vertical> DenseBase<Derived>::allCols() -{ return SubVectorsProxy<Derived,Vertical>(derived()); } - -template<typename Derived> -SubVectorsProxy<const Derived,Vertical> DenseBase<Derived>::allCols() const -{ return SubVectorsProxy<const Derived,Vertical>(derived()); } - -template<typename Derived> -SubVectorsProxy<Derived,Horizontal> DenseBase<Derived>::allRows() -{ return SubVectorsProxy<Derived,Horizontal>(derived()); } - -template<typename Derived> -SubVectorsProxy<const Derived,Horizontal> DenseBase<Derived>::allRows() const -{ return SubVectorsProxy<const Derived,Horizontal>(derived()); } - } // namespace Eigen |