aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Array/ArrayBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Array/ArrayBase.h')
-rw-r--r--Eigen/src/Array/ArrayBase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Array/ArrayBase.h b/Eigen/src/Array/ArrayBase.h
index 0effa2e2d..21f6fefb1 100644
--- a/Eigen/src/Array/ArrayBase.h
+++ b/Eigen/src/Array/ArrayBase.h
@@ -149,6 +149,9 @@ template<typename Derived> class ArrayBase
Derived& operator/=(const ArrayBase<OtherDerived>& other);
public:
+ ArrayBase<Derived>& array() { return *this; }
+ const ArrayBase<Derived>& array() const { return *this; }
+
MatrixWrapper<Derived> matrix() { return derived(); }
const MatrixWrapper<Derived> matrix() const { return derived(); }