mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 01:59:38 +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));
|
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:
|
protected:
|
||||||
const MatrixTypeNested m_matrix;
|
const MatrixTypeNested m_matrix;
|
||||||
const MemberOp m_functor;
|
const MemberOp m_functor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user