mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
add missing PartialReduxExpr::coeff(index) function
This commit is contained in:
parent
1443094072
commit
8c37b1b5b7
@ -95,6 +95,14 @@ class PartialReduxExpr : ei_no_assignment_operator,
|
||||
return m_functor(m_matrix.row(i));
|
||||
}
|
||||
|
||||
const Scalar coeff(int index) const
|
||||
{
|
||||
if (Direction==Vertical)
|
||||
return m_functor(m_matrix.col(index));
|
||||
else
|
||||
return m_functor(m_matrix.row(index));
|
||||
}
|
||||
|
||||
protected:
|
||||
const MatrixTypeNested m_matrix;
|
||||
const MemberOp m_functor;
|
||||
|
Loading…
Reference in New Issue
Block a user