mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Give the axe to the aliasing system.
Improve the evaluation system instead.
This commit is contained in:
@@ -37,6 +37,9 @@ template<typename Lhs, typename Rhs> class MatrixSum
|
||||
typedef typename Rhs::Ref RhsRef;
|
||||
friend class EigenBase<Scalar, MatrixSum>;
|
||||
typedef MatrixSum Ref;
|
||||
|
||||
static const int RowsAtCompileTime = Lhs::RowsAtCompileTime,
|
||||
ColsAtCompileTime = Rhs::ColsAtCompileTime;
|
||||
|
||||
MatrixSum(const LhsRef& lhs, const RhsRef& rhs)
|
||||
: m_lhs(lhs), m_rhs(rhs)
|
||||
@@ -75,6 +78,9 @@ template<typename Lhs, typename Rhs> class MatrixDifference
|
||||
friend class EigenBase<Scalar, MatrixDifference>;
|
||||
typedef MatrixDifference Ref;
|
||||
|
||||
static const int RowsAtCompileTime = Lhs::RowsAtCompileTime,
|
||||
ColsAtCompileTime = Rhs::ColsAtCompileTime;
|
||||
|
||||
MatrixDifference(const LhsRef& lhs, const RhsRef& rhs)
|
||||
: m_lhs(lhs), m_rhs(rhs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user