diff options
author | 2010-01-21 17:55:09 +0100 | |
---|---|---|
committer | 2010-01-21 17:55:09 +0100 | |
commit | f1a025185a25e53eb1c4817141c0523cf48f70bc (patch) | |
tree | 53882eb18e215b4c198e7c54a16cb9a59c45ecb8 /Eigen/src/Array/ArrayBase.h | |
parent | dbf3af866e659b88d8bcbd0ab31fdbd30c731b62 (diff) |
Added array() to ArrayBase and matrix() to MatrixBase().
Diffstat (limited to 'Eigen/src/Array/ArrayBase.h')
-rw-r--r-- | Eigen/src/Array/ArrayBase.h | 3 |
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(); } |