Fixed #148 where a const-accessor for coefficients was missing in the MatrixWrapper.

This commit is contained in:
Hauke Heibel
2011-01-04 15:35:50 +01:00
parent d7e1eeaece
commit 4ba0ec5e0e
2 changed files with 6 additions and 1 deletions

View File

@@ -160,6 +160,11 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
return m_expression.const_cast_derived().coeffRef(row, col);
}
inline const Scalar& coeffRef(Index row, Index col) const
{
return m_expression.derived().coeffRef(row, col);
}
inline const CoeffReturnType coeff(Index index) const
{
return m_expression.coeff(index);