aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Eigen/src/Core/Block.h2
-rw-r--r--Eigen/src/Core/MapBase.h3
2 files changed, 2 insertions, 3 deletions
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<typename MatrixType, int BlockRows, int BlockCols, int PacketAccess, in
inline int rows() const { return m_blockRows.value(); }
inline int cols() const { return m_blockCols.value(); }
- inline int stride(void) const { return m_matrix.stride(); }
-
inline Scalar& coeffRef(int row, int col)
{
return m_matrix.const_cast_derived()
diff --git a/Eigen/src/Core/MapBase.h b/Eigen/src/Core/MapBase.h
index ceedb08cb..e616cdcc8 100644
--- a/Eigen/src/Core/MapBase.h
+++ b/Eigen/src/Core/MapBase.h
@@ -63,6 +63,7 @@ template<typename Derived> 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<typename Derived> class MapBase
|| ( rows > 0 && (RowsAtCompileTime == Dynamic || RowsAtCompileTime == rows)
&& cols > 0 && (ColsAtCompileTime == Dynamic || ColsAtCompileTime == cols)));
}
-
+
template<typename OtherDerived>
Derived& operator+=(const MatrixBase<OtherDerived>& other)
{ return derived() = forceAligned() + other; }