From afdd26f2299fd64ca05174d6a25a3847bb3b9c1d Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Mon, 4 Apr 2011 13:44:50 +0100 Subject: Do some of the actual work in evaluator for Block. Also, add simple accessor methods to Block expression class. --- Eigen/src/Core/Block.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Eigen/src/Core/Block.h') diff --git a/Eigen/src/Core/Block.h b/Eigen/src/Core/Block.h index 2b251bc2c..b7dafd3ee 100644 --- a/Eigen/src/Core/Block.h +++ b/Eigen/src/Core/Block.h @@ -242,6 +242,21 @@ template::type& nestedExpression() const + { + return m_xpr; + } + + Index startRow() const + { + return m_startRow.value(); + } + + Index startCol() const + { + return m_startCol.value(); + } + protected: const typename XprType::Nested m_xpr; @@ -304,6 +319,11 @@ class Block init(); } + const typename internal::remove_all::type& nestedExpression() const + { + return m_xpr; + } + /** \sa MapBase::innerStride() */ inline Index innerStride() const { -- cgit v1.2.3