diff --git a/Eigen/src/Core/Block.h b/Eigen/src/Core/Block.h index 94390b347..cfbf6da53 100644 --- a/Eigen/src/Core/Block.h +++ b/Eigen/src/Core/Block.h @@ -146,8 +146,6 @@ template class MapBase inline int cols() const { return m_cols.value(); } inline int stride() const { return derived().stride(); } + inline const Scalar* data() const { return m_data; } /** \returns an expression equivalent to \c *this but having the \c PacketAccess constant * set to \c ForceAligned. Must be reimplemented by the derived class. */ @@ -149,7 +150,7 @@ template class MapBase || ( rows > 0 && (RowsAtCompileTime == Dynamic || RowsAtCompileTime == rows) && cols > 0 && (ColsAtCompileTime == Dynamic || ColsAtCompileTime == cols))); } - + template Derived& operator+=(const MatrixBase& other) { return derived() = forceAligned() + other; }