diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2011-01-18 13:19:13 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2011-01-18 13:19:13 +0100 |
commit | 9b2546fea862d1e12b9d8073475d4a0484da5780 (patch) | |
tree | 520eff2684fe167a81dbb6b6bc5e7e2baa1afd9e /Eigen/src/Core/ArrayWrapper.h | |
parent | c7eaca50a04cdec8743ef6f0ca98c59d8df56941 (diff) |
Added remaining const coeffRef accessors to Array- and MatrixWrapper.
Diffstat (limited to 'Eigen/src/Core/ArrayWrapper.h')
-rw-r--r-- | Eigen/src/Core/ArrayWrapper.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Eigen/src/Core/ArrayWrapper.h b/Eigen/src/Core/ArrayWrapper.h index f6b7f90a4..7ba01de36 100644 --- a/Eigen/src/Core/ArrayWrapper.h +++ b/Eigen/src/Core/ArrayWrapper.h @@ -72,6 +72,11 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> > return m_expression.const_cast_derived().coeffRef(row, col); } + inline const Scalar& coeffRef(Index row, Index col) const + { + return m_expression.const_cast_derived().coeffRef(row, col); + } + inline const CoeffReturnType coeff(Index index) const { return m_expression.coeff(index); @@ -82,6 +87,11 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> > return m_expression.const_cast_derived().coeffRef(index); } + inline const Scalar& coeffRef(Index index) const + { + return m_expression.const_cast_derived().coeffRef(index); + } + template<int LoadMode> inline const PacketScalar packet(Index row, Index col) const { @@ -175,6 +185,11 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> > return m_expression.const_cast_derived().coeffRef(index); } + inline const Scalar& coeffRef(Index index) const + { + return m_expression.const_cast_derived().coeffRef(index); + } + template<int LoadMode> inline const PacketScalar packet(Index row, Index col) const { |