mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Added remaining const coeffRef accessors to Array- and MatrixWrapper.
This commit is contained in:
parent
c7eaca50a0
commit
9b2546fea8
@ -72,6 +72,11 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
|
|||||||
return m_expression.const_cast_derived().coeffRef(row, col);
|
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
|
inline const CoeffReturnType coeff(Index index) const
|
||||||
{
|
{
|
||||||
return m_expression.coeff(index);
|
return m_expression.coeff(index);
|
||||||
@ -82,6 +87,11 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
|
|||||||
return m_expression.const_cast_derived().coeffRef(index);
|
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>
|
template<int LoadMode>
|
||||||
inline const PacketScalar packet(Index row, Index col) const
|
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);
|
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>
|
template<int LoadMode>
|
||||||
inline const PacketScalar packet(Index row, Index col) const
|
inline const PacketScalar packet(Index row, Index col) const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user