Give the axe to the aliasing system.

Improve the evaluation system instead.
This commit is contained in:
Benoit Jacob
2007-09-26 14:06:26 +00:00
parent 55227b1f63
commit a2dd9dd6f9
11 changed files with 29 additions and 95 deletions

View File

@@ -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)
{