mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* introducte recursive Flags system for the expressions
-- currently 3 flags: RowMajor, Lazy and Large -- only RowMajor actually used for now * many minor improvements
This commit is contained in:
@@ -92,7 +92,10 @@ struct ei_traits<PartialRedux<Direction, BinaryOp, MatrixType> >
|
||||
RowsAtCompileTime = Direction==Vertical ? 1 : MatrixType::RowsAtCompileTime,
|
||||
ColsAtCompileTime = Direction==Horizontal ? 1 : MatrixType::ColsAtCompileTime,
|
||||
MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime,
|
||||
MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime
|
||||
MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime,
|
||||
Flags = (RowsAtCompileTime == Dynamic || ColsAtCompileTime == Dynamic)
|
||||
? (unsigned int)MatrixType::Flags
|
||||
: (unsigned int)MatrixType::Flags & ~Large
|
||||
};
|
||||
};
|
||||
|
||||
@@ -112,7 +115,7 @@ class PartialRedux : ei_no_assignment_operator,
|
||||
int _rows() const { return (Direction==Vertical ? 1 : m_matrix.rows()); }
|
||||
int _cols() const { return (Direction==Horizontal ? 1 : m_matrix.cols()); }
|
||||
|
||||
Scalar _coeff(int i, int j) const
|
||||
const Scalar _coeff(int i, int j) const
|
||||
{
|
||||
if (Direction==Vertical)
|
||||
return this->col(j).redux(m_functor);
|
||||
|
||||
Reference in New Issue
Block a user