diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-04-04 13:44:50 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2011-04-04 13:44:50 +0100 |
commit | afdd26f2299fd64ca05174d6a25a3847bb3b9c1d (patch) | |
tree | 04aa425be145e632f06d0523d191df4bdac109ec /Eigen/src/Core/Block.h | |
parent | 0d58c36ffd1cf93bb525ff48c30fe3d25ce5ad08 (diff) |
Do some of the actual work in evaluator for Block.
Also, add simple accessor methods to Block expression class.
Diffstat (limited to 'Eigen/src/Core/Block.h')
-rw-r--r-- | Eigen/src/Core/Block.h | 20 |
1 files changed, 20 insertions, 0 deletions
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<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool H inline Index outerStride() const; #endif + const typename internal::remove_all<typename XprType::Nested>::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<XprType,BlockRows,BlockCols, InnerPanel,true> init(); } + const typename internal::remove_all<typename XprType::Nested>::type& nestedExpression() const + { + return m_xpr; + } + /** \sa MapBase::innerStride() */ inline Index innerStride() const { |