aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/MapBase.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-01-16 10:25:53 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-01-16 10:25:53 +0000
commit48df9ed715e549a71fafaf6f176ef97924a6bb21 (patch)
treebd8cd8aed3de5797d1272bd32566856b1de73816 /Eigen/src/Core/MapBase.h
parentccdcebcf03a529b429feda831ff4b44f8433e045 (diff)
Add a data() function in Map and Block
Diffstat (limited to 'Eigen/src/Core/MapBase.h')
-rw-r--r--Eigen/src/Core/MapBase.h3
1 files changed, 2 insertions, 1 deletions
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; }